Repository navigation
Conversation
cbodley
left a comment
There was a problem hiding this comment.
we'll need to clone the logs from each period separately. it's not clear to me how this interacts with the loop over periods in RGWMetaSyncCR: https://github.com/ceph/ceph/blob/84296aa/src/rgw/driver/rados/rgw_sync.cc#L2011-L2013
There was a problem hiding this comment.
ultimately we just want to be calling RGWCloneMetaLogCoroutine in a loop, without any of the other stuff below that was copy/pasted from incremental sync
|
@thotz it seems like it would be better to squash these into 1 commit? the first commit otherwise is adding a bunch of code that I think the second one just removes |
In metadata incremental sync, RGWCloneMetaLogCoroutine copies mdlog entries from the primary zone, so that it can serve those entries to other zones in the case of failover (and it's promoted to the 'metadata master'), these entries are not copied in metadata full sync. so a new zone that syncs all of its metadata from full sync won't have any of the mdlog entries. if that new zone is promoted to the metadata master, it won't be able to serve these entries to other zones hat are behind in incremental sync. so those zones will think they're caught up, but may be missing lots of metadata Signed-off-by: Jiffin Tony Thottan <[email protected]>
8ef6093 to
dee4fc3
Compare
|
jenkins test make check arm64 |
|
jenkins test api |
|
I have tested the following scenario:
|
Above scenario works even without this PR |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
Closing this PR since no longer issue is seen in multicluster enviroment |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
apart from testing, the PR looks ok to me. @cbodley is there more to be done here? |
|
failover may happen multiple times, generating a new period each time. each period has its own separate mdlog. incremental metadata sync will loop over periods in order and process the mdlogs for each until it's caught up with the current period. so the metadata master zone is expected to serve those mdlogs for all periods that its peers are still referencing this pr calls RGWCloneMetaLogCoroutine for the current period, but doesn't try to clone the logs for any earlier periods. i think we still need to cover that part, and build test cases that exercise it |
agreed, thanks! i'll follow up with an update in #70829 |
In metadata incremental sync, RGWCloneMetaLogCoroutine copies mdlog entries from the primary zone, so that it can serve those entries to other zones in the case of failover (and it's promoted to the 'metadata master'), these entries are not copied in metadata full sync. so a new zone that syncs all of its metadata from full sync won't have any of the mdlog entries. if that new zone is promoted to the metadata master, it won't be able to serve these entries to other zones hat are behind in incremental sync. so those zones will think they're caught up, but may be missing lots of metadata
Fixes: https://tracker.ceph.com/issues/55770
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows