Repository navigation
mon: paxos_service_min_trim bug fix, ceph tracker issue: 71610 - #63890
Conversation
|
You'll want to drop the "added counters for full and incremental maps" commit. |
There was a problem hiding this comment.
to_remove == 0 means that trim_to == first_committed -- would it make more sense to adjust the if (trim_to < first_committed) { block a bit earlier in the function?
|
Commit message formatting nits: Space after mon: There should be a Fixes line with a link to the tracker ticket. Also, the Signed-off-by line has a trailing ". Last two lines should be: |
|
Fix looks right! I left a comment with a suggested simplification and another with some formatting nits on the commit message. |
When to_remove is 0 and first commited is 0 the maybe trim function in paxos service.cc calls the trim function with argument to and from having the same value, which causes the assert statement in the trim function to fail and the monitor to crash. Modifying the if statement trim_to <= first commited checks this condition before calling the trim function and returns if true Fixes: https://tracker.ceph.com/issues/71610 Signed-off-by: Shreya Subramanian <[email protected]>
b73ef2b to
3d98e57
Compare
athanatos
left a comment
There was a problem hiding this comment.
Approved! pending qa run
|
|
||
| if (trim_to < first_committed) { | ||
| dout(10) << __func__ << " trim_to " << trim_to << " < first_committed " | ||
| if (trim_to <= first_committed) { |
There was a problem hiding this comment.
Logically this should be fine as first_committed is the first valid epoch to trim and trim_to is the exclusive upper bound. LGTM.
|
jenkins test api |
1 similar comment
|
jenkins test api |
|
jenkins test make check |
|
@shreya-subramanian can you please check the teuthology results: I think they are related to that PR |
|
jenkins test make check |
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 Definition