Repository navigation
mon: preserve log acknowledgements and release rejected requests - #72555
Conversation
The unconditional no_reply() in preprocess_log() introduced by 56cb53d releases a forwarded request before its log entries are committed. The later MLogAck is then dropped by the peon because the routed request no longer exists, leaving the client log queue untrimmed. Restore the preprocessing flow so new log entries retain their routed request until _updated_log() sends the acknowledgement. Call no_reply() in prepare_log() when rejecting an MLog with a mismatched fsid, so the peon can release the routed request on the path that originally leaked. Fixes: https://tracker.ceph.com/issues/81604 Signed-off-by: yulong shi <[email protected]>
|
Thank you for your contribution. Since you are not yet a member of the Ceph organization with write permissions on ceph/ceph.git, our CI will not automatically run. Any member of the Ceph organization may label this PR |
|
jenkins test make check |
|
@NitzanMordhai and @rzarzynski this change looks good to me, could you take a look as well? |
|
This PR has been added to wip-bharath7-testing-20261012.100201-main. |
| } | ||
|
|
||
| done: | ||
| mon.no_reply(op); |
There was a problem hiding this comment.
Ouch, I see – there was a work to do (preprocess_log() returning false to avoid the early exit at PaxosService::dispatch()) but no_reply()-at-leader generates too-early MRoute.
| done: | ||
| mon.no_reply(op); | ||
| return (!num_new); | ||
| return false; |
There was a problem hiding this comment.
Yes, for num_new > 0 we shall not early exit in PaxosService::dispatch().
| if (m->fsid != mon.monmap->fsid) { | ||
| dout(0) << "handle_log on fsid " << m->fsid << " != " << mon.monmap->fsid | ||
| << dendl; | ||
| mon.no_reply(op); |
There was a problem hiding this comment.
The above just reverts the original @NitzanMordhai's patch entirely.
This line becomes the actual fix for https://tracker.ceph.com/issues/54489 (or perhaps a partial fix).
The conclusion is the original problem has been caused by LogClient passing wrong fsid to the constructor of MLog. @kamoltat, do we have a bug there that pops out in stretch mode?
There was a problem hiding this comment.
@rzarzynski
I can confirm that mon.monmap->fsid is the same through out stretch mode
|
I believe I hit this on 20.2.1 in our production Ceph cluster. I observed:
I used an LLM agent for the investigation. Along the way, the agent found two related client-side issues that this PR doesn't touch. Happy to open separate tracker issues for these if that's preferred. LLM output below; suggested diff sketches are not tested. They are against current LLM output1.
|
Thanks @nh2 for the report. This is useful confirmation of the production impact. Please let us know whether the merged fix resolves your case once you can run a build that includes it. Backports are tracked in https://tracker.ceph.com/issues/81604. The two client-side issues look independent of this PR, so separate tracker issues make sense. Please feel free to open them. One note on the sketch: |
The unconditional no_reply() in preprocess_log() introduced by 56cb53d releases a forwarded request before its log entries are committed. The later MLogAck is then dropped by the peon because the routed request no longer exists, leaving the client log queue untrimmed.
Restore the preprocessing flow so new log entries retain their routed request until _updated_log() sends the acknowledgement. Call no_reply() in prepare_log() when rejecting an MLog with a mismatched fsid, so the peon can release the routed request on the path that originally leaked.
Fixes: https://tracker.ceph.com/issues/81604
Related PR: #61933
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.