]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
RGW/multisite/RGWListRemoteBucketCR: clear reused bucket_list_result to avoid stale...
authorOguzhan Ozmen <oozmen@bloomberg.net>
Tue, 11 Nov 2025 16:16:19 +0000 (16:16 +0000)
committerShilpa Jagannath <smanjara@redhat.com>
Wed, 19 Nov 2025 17:58:01 +0000 (12:58 -0500)
commit45eab02207b6e45b79857996e8540464a959a39e
tree78ddce19c26a13c6f7c0b4e79411c08bf1b9ea7f
parent93c42e37a7fb2a2297acbb8efe08e8f71dbd186b
RGW/multisite/RGWListRemoteBucketCR: clear reused bucket_list_result to avoid stale listings

RGWBucketFullSyncCR could spin indefinitely when the source bucket was
already deleted. The coroutine reused a bucket_list_result member, and
RGWListRemoteBucketCR populated it without clearing prior state. Stale
entries/is_truncated from a previous iteration caused the loop to
continue even after the bucket no longer existed.

Fix by clearing the provided bucket_list_result at the start of
RGWListRemoteBucketCR (constructor), ensuring each listing starts from a
clean state and reflects the current remote bucket contents.

This prevents the infinite loop and returns correct results when the
bucket has been deleted.

Fixes: https://tracker.ceph.com/issues/73799
Signed-off-by: Oguzhan Ozmen <oozmen@bloomberg.net>
(cherry picked from commit 4e80bbfe05d0d8659a0ab54b578c42deea99a915)
resolves rhbz#2412220
src/rgw/driver/rados/rgw_data_sync.cc