]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw/notifications: handle migration state between v1 and v2
authorYuval Lifshitz <ylifshit@redhat.com>
Sat, 10 Feb 2024 16:38:30 +0000 (16:38 +0000)
committerCasey Bodley <cbodley@redhat.com>
Tue, 5 Mar 2024 17:56:05 +0000 (12:56 -0500)
commitbcd79d23df63e72839c652cbc20ebb67a024ba85
tree4517680c5ec54417f12dac4d42939e414c7042b8
parent5b2ae726a95c9922a5c5ba984d6e170dd115128b
rgw/notifications: handle migration state between v1 and v2

test instructions:
https://gist.github.com/yuvalif/21449e301732b719cd1ed97c3eeeabb2

* during migration all topic and notification operations must fail with HTTP error code 503
* read operations should return the values of the v1 topics and notifications
* sending notifications should continue based on v1 values

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
src/rgw/driver/rados/rgw_notify.cc
src/rgw/driver/rados/rgw_sal_rados.cc
src/rgw/driver/rados/rgw_sal_rados.h
src/rgw/rgw_admin.cc
src/rgw/rgw_common.cc
src/rgw/rgw_pubsub.cc
src/rgw/rgw_rest_pubsub.cc
src/rgw/rgw_sal.h
src/rgw/rgw_sal_filter.h
src/rgw/rgw_sal_store.h