]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/amqp: remove possible race conditions with the amqp connections
authorYuval Lifshitz <ylifshit@redhat.com>
Fri, 16 Jun 2023 15:10:19 +0000 (15:10 +0000)
committerYuval Lifshitz <ylifshit@redhat.com>
Wed, 21 Jun 2023 08:06:17 +0000 (08:06 +0000)
commit38d819b3d77f4b330b542940314e22c21bb5591d
tree063682ba0edb966da3c02d645a990f19887ace65
parentff8144fac0bdb12d803d6c3905e68584dd10bb19
rgw/amqp: remove possible race conditions with the amqp connections

* simplify memory management of the connection by not using a unique_ptr
* simplify the logic by handling all issues inside the amqp manager
* fix iterator invalidation issue with miltiple n/acks
* allow different connections with different exchanges
* modify the unit tests according to the new behavior

Fixes:
* https://tracker.ceph.com/issues/61639
* https://tracker.ceph.com/issues/46127

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
doc/radosgw/notifications.rst
src/rgw/driver/rados/rgw_pubsub_push.cc
src/rgw/rgw_amqp.cc
src/rgw/rgw_amqp.h
src/test/rgw/test_rgw_amqp.cc