Repository navigation
mds: delay cache rejoin OP_WEAK until peer is in rejoin - #71643
Conversation
vshankar
left a comment
There was a problem hiding this comment.
Minor comment. Otherwise LGTM and is good to run through QA (once the pending comments reach conclusion).
9514602 to
cda62ed
Compare
|
@vshankar all comments have been addressed |
|
jenkins test make check |
1 similar comment
|
jenkins test make check |
Hold rejoin_send_rejoins() until mds_defer_rejoin_send_for_testing is cleared, so a peer can fail and return below rejoin before the weak rejoin is sent. The failover test releases that hold while the peer is still replaying. Fixes: https://tracker.ceph.com/issues/54840 Signed-off-by: Venky Shankar <[email protected]>
A deferred rejoin_send_rejoins() can send OP_WEAK while a peer is still below rejoin, crashing the receiver on ceph_assert(mds->is_rejoin()). Skip OP_WEAK for every rank below STATE_REJOIN, including a failed rank, keep rejoins_pending, and retry from handle_mds_map only while this rank is in rejoin and a send was deferred. On the receiver, defer the message until rejoin_start() instead of asserting. Fixes: https://tracker.ceph.com/issues/54840 Signed-off-by: Igor Golikov <[email protected]>
cda62ed to
20a0e3d
Compare
Config Diff Tool Output+ added: mds_defer_rejoin_send_for_testing (mds.yaml.in)
The above configuration changes are found in the PR. Please update the relevant release documentation if necessary. |
|
Squashed the 3 commits and added a test reproducer. The issue reproduces without this fix. See: https://pulpito.ceph.com/vshankar-2026-11-04_16:46:13-fs:functional-wip-weak-rejoin-crash-distro-default-trial/714875/ And with the fix the test passes. |
|
jenkins test make check |
|
This PR has been added to main integration testing by vshankar started 2026-11-06-10:30. |
|
jenkins test api |
A deferred rejoin_send_rejoins() can send OP_WEAK while a peer is still in resolve or reconnect, crashing the receiver on
ceph_assert(mds->is_rejoin()). Defer handling until rejoin_start(), skip sending OP_WEAK to peers below STATE_REJOIN, keep rejoins_pending, and retry when a peer reaches rejoin.
Fixes: https://tracker.ceph.com/issues/54840
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.