]> git-server-git.apps.pok.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>
Wed, 10 Apr 2024 13:18:06 +0000 (09:18 -0400)
commit0c3ebc317866d5638729f5c558bbc5084a7bd9fa
tree5ad16c763422254d7a919f4d9eca26c1a8766b78
parent52bb52a04d4cf1f6cf5fa4cb064dd1993b43c471
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>
(cherry picked from commit bcd79d23df63e72839c652cbc20ebb67a024ba85)
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