Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rgw: dont reuse stale RGWObjectCtx for get_bucket_info() #17916

Merged
merged 1 commit into from Sep 28, 2017

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented Sep 22, 2017

if the earlier call to store->get_bucket_entrypoint_info() failed with
ENOENT, the obj_ctx will cache exists=false.
put_bucket_entrypoint_info() doesn't invalidate that, so this call to
get_bucket_info() was reading from a stale cache and failing with ENOENT

these failures were causing multisite's metadata sync to stall

Fixes: http://tracker.ceph.com/issues/21506

if the earlier call to store->get_bucket_entrypoint_info() failed with
ENOENT, the obj_ctx will cache exists=false.
put_bucket_entrypoint_info() doesn't invalidate that, so this call to
get_bucket_info() was reading from a stale cache and failing with ENOENT

Fixes: http://tracker.ceph.com/issues/21506

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@yuriw yuriw merged commit fb030b1 into ceph:master Sep 28, 2017
@cbodley cbodley deleted the wip-21506 branch October 2, 2017 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants