Repository navigation
rgw/notification: Store the value of persistent_queue for existing topics and continue commiting events for all topics subscribed to given bucket - #57536
Conversation
There was a problem hiding this comment.
i think this should just copy dest.persistent_queue = topic->dest.persistent_queue. the topic we're overwriting may have been a legacy one whose queue doesn't include the tenant namespace
There was a problem hiding this comment.
would it not be better in way, the user now gets migrated to correct queue name ?
just that old queue will remain there in the system
There was a problem hiding this comment.
not unless we have a way to clean up the old queue. the notification thread would keep polling on it forever
There was a problem hiding this comment.
may be this code will still not make use of the new queue name even if it exist
if (struct_v >= 7) {
decode(persistent_queue, bl);
} else if (persistent) {
// persistent topics created before v7 did not support tenant namespacing.
// continue to use 'arn_topic' alone as the queue's rados object name
persistent_queue = arn_topic;
}
There was a problem hiding this comment.
i think this should just copy
dest.persistent_queue = topic->dest.persistent_queue. the topic we're overwriting may have been a legacy one whose queue doesn't include the tenant namespace
done
aa1efca to
05bb79e
Compare
cbodley
left a comment
There was a problem hiding this comment.
looks correct to me. is there a test case we can extend with a re-create to verify that persistent topics still work?
looked at |
can we add that to one of the existing persistent notification tests? |
…persistent topic. Fixes https://tracker.ceph.com/issues/66097 Signed-off-by: kchheda3 <[email protected]>
…opics subscribed to bucket even if there is failure to load any single topic . Fixes https://tracker.ceph.com/issues/66097 Signed-off-by: kchheda3 <[email protected]>
05bb79e to
9f4ea76
Compare
updated the existing test case to re-create the topic and verify the persistent_queue is correctly populated. |
Fixes https://tracker.ceph.com/issues/66097
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windowsjenkins test rook e2e