]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: reshard: skip stale bucket id entries from reshard queue 34734/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Fri, 17 Apr 2020 15:11:01 +0000 (17:11 +0200)
committerNathan Cutler <ncutler@suse.com>
Fri, 24 Apr 2020 13:03:24 +0000 (15:03 +0200)
commit2fe14a7568cb6c63d185812ba6a79ba4aebce78d
treeb73d8f8d8a430cae92be2abf16bd35b143e901c6
parent2d214f1f9ae43a58de4536b43b0f532315699b9a
rgw: reshard: skip stale bucket id entries from reshard queue

If we encounter a reshard queue entry that has an older ID compared to the
bucket's current ID, it'd mean that some other process or a manual reshard has
already processed this entry, skip processing the entry this time. An
alternative is to verify the num_shards that we have in queue >= the current
shards, but this would mean that we may reshard a recently manual resharded
bucket again which might not be intended

Fixes: https://tracker.ceph.com/issues/45134
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 02664fc091674e28233559cd1c42f954d5776d86)
src/rgw/rgw_reshard.cc