Repository navigation
tools/cephfs_mirror: optimize decoding/reading snap metadata from PeerReplayer::build_snap_map - #71027
Conversation
karthik-us1
left a comment
There was a problem hiding this comment.
The commit message is misleading. It says the initialize_checkpoints was calling build_snap_map(), decoding the snap metadata and discarding it, and re-fetching it later using the read_snap_metadata.
The decoding was happening in build_snap_map only for remote, since we wanted to get its matching snap_id from the metadata. For local it was not doing the decode and was not discarding it. The optimization that you are doing is now adding the decode if it is asked for, to avoid that extra read_snap_metadata.
Correct me if i'm wrong here but |
Yes, your understanding is correct. The |
c89bb2e to
151b879
Compare
…rReplayer::build_snap_map specifically PeerReplayer::initialize_checkpoints which builds the local snap map then a block down the line it also decodes the metadata per snap path but we can achieve this from a single call. Fixes: https://tracker.ceph.com/issues/79460 Signed-off-by: Dhairya Parmar <[email protected]>
|
I'd like to test this up real quick. Can someone advice what's the exact qa suite(s) to run with? @vshankar @kotreshhr ? |
I will put this to test |
thanks! |
|
This PR has been added to main integration testing by khiremat started 2026-10-08-19:27. |
|
@dparmar18 Root cause by llm: I think it's better to fix the testcase since the new message is more clear |
test_cephfs_mirror_remote_snap_corrupt_fails_synced_snapshot checked for failure_reason which has been changed as part of ceph#71027: Before: snapshot 'snap_b' has invalid metadata After: remote fs snapshot 'snap_b' has invalid metadata Fixes: https://tracker.ceph.com/issues/79460 Signed-off-by: Dhairya Parmar <[email protected]>
fixed f4ed4ee |
specifically PeerReplayer::initialize_checkpoints which builds
the local snap map then a block down the line it also decodes the
metadata per snap path but we can achieve this from a single call.
Fixes: https://tracker.ceph.com/issues/79460
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. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.