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

radosgw-admin: bucket sync status not 'caught up' during full sync #29094

Merged
merged 1 commit into from Aug 20, 2019

Conversation

cbodley
Copy link
Contributor

@cbodley cbodley commented Jul 17, 2019

the 'radosgw-admin bucket sync status' command will incorrectly report that the "bucket is caught up with source" if some shards are still on full sync

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

the 'radosgw-admin bucket sync status' command will incorrectly report
that the "bucket is caught up with source" if some shards are still on
full sync

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

Signed-off-by: Casey Bodley <cbodley@redhat.com>
@cbodley
Copy link
Contributor Author

cbodley commented Aug 16, 2019

@smanjara
Copy link
Contributor

Not sure if I'm reading the logs in [1] right but metadata sync status says full_sync is complete even when test-zone2 is behind master?

"full_sync":{"total":1,"complete":1}}
2019-08-14T18:14:01.964 WARNING:rgw_multi.tests:zone test-zone2 behind master: shard=0 master=1_1565806425.768022_200.1

[1] http://qa-proxy.ceph.com/teuthology/cbodley-2019-08-14_17:32:34-rgw-wip-cbodley-testing-distro-basic-smithi/4214957/teuthology.log

@cbodley
Copy link
Contributor Author

cbodley commented Aug 20, 2019

"full_sync":{"total":1,"complete":1}}

this part is saying that full sync had a total of 1 entry to sync, and it completed that 1 entry

2019-08-14T18:14:01.964 INFO:teuthology.orchestra.run.smithi203.stdout:{"sync_status":{"info":{"status":"sync","num_shards":4,"period":"bc5c1e02-bb2a-49fb-98c7-768910f99e7f","realm_epoch":2},"markers":[{"key":0,"val":{"state":1,"marker":"","next_step_marker":"","total_entries":1,"pos":0,"timestamp":"0.000000","realm_epoch":2}},{"key":1,"val":{"state":1,"marker":"","next_step_marker":"","total_entries":0,"pos":0,"timestamp":"0.000000","realm_epoch":2}},{"key":2,"val":{"state":1,"marker":"","next_step_marker":"","total_entries":0,"pos":0,"timestamp":"0.000000","realm_epoch":2}},{"key":3,"val":{"state":1,"marker":"","next_step_marker":"","total_entries":0,"pos":0,"timestamp":"0.000000","realm_epoch":2}}]},"full_sync":{"total":1,"complete":1}}

each shard shows state=1, which is rgw_meta_sync_marker::SyncState::IncrementalSync

2019-08-14T18:14:01.964 WARNING:rgw_multi.tests:zone test-zone2 behind master: shard=0 master=1_1565806425.768022_200.1 target=

this says that master's log goes up to marker 1_1565806425.768022_200.1 for shard 0, but the target sync status has an empty marker for that shard, which is why it shows as behind

@cbodley cbodley merged commit 0849b0e into ceph:master Aug 20, 2019
@cbodley
Copy link
Contributor Author

cbodley commented Aug 20, 2019

thanks for review!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants