]> 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)
committerOguzhan Ozmen <oozmen@bloomberg.net>
Fri, 13 Feb 2026 03:47:49 +0000 (03:47 +0000)
commitc8a66a96e913b8a112ef26bf3399ede861686d23
tree382c52a0ef8b05cab5f1ba4c589655f381c8c75e
parentae59eac57f2cdc7784f413c86dff99f27382bacb
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>
src/rgw/driver/rados/rgw_data_sync.cc