]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: reshard: skip stale bucket id entries from reshard queue 34614/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Fri, 17 Apr 2020 15:11:01 +0000 (17:11 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Fri, 17 Apr 2020 15:11:01 +0000 (17:11 +0200)
commit02664fc091674e28233559cd1c42f954d5776d86
tree3fcb91815e0d2f047abfe1c4fb1a8a047879bd66
parent0f2305d127909e5e0d30af745ebc87cb6a5fc0a6
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>
src/rgw/rgw_reshard.cc