Skip to content

mon: paxos_service_min_trim bug fix, ceph tracker issue: 71610 - #63890

Merged
athanatos merged 1 commit into
ceph:mainfrom
shreya-subramanian:bug_fix
Jul 17, 2025
Merged

athanatos merged 1 commit into
ceph:mainfrom
shreya-subramanian:bug_fix

Conversation

@shreya-subramanian

@shreya-subramanian shreya-subramanian commented Jun 11, 2025 •

Copy link
Copy Markdown
Contributor

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

@shreya-subramanian
shreya-subramanian requested a review from a team as a code owner June 11, 2025 22:24
@athanatos

Copy link
Copy Markdown
Contributor

You'll want to drop the "added counters for full and incremental maps" commit.

Comment thread src/mon/PaxosService.cc Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@athanatos

athanatos commented Jun 11, 2025 •

Copy link
Copy Markdown
Contributor

Commit message formatting nits:

Space after mon:
mon: Added an if statement to check if there were maps to trim

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:

Fixes: https://tracker.ceph.com/issues/71610
Signed-off-by: Shreya Subramanian <[email protected]>

@athanatos

Copy link
Copy Markdown
Contributor

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]>

@athanatos athanatos left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved! pending qa run

@shreya-subramanian shreya-subramanian changed the title mon:paxose_service_min_trim bug fix, ceph tracker issue: 71610 mon: paxos_service_min_trim bug fix, ceph tracker issue: 71610 Jun 12, 2025
Comment thread src/mon/PaxosService.cc

if (trim_to < first_committed) {
dout(10) << __func__ << " trim_to " << trim_to << " < first_committed "
if (trim_to <= first_committed) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Logically this should be fine as first_committed is the first valid epoch to trim and trim_to is the exclusive upper bound. LGTM.

@athanatos

Copy link
Copy Markdown
Contributor

jenkins test api

1 similar comment
@athanatos

Copy link
Copy Markdown
Contributor

jenkins test api

@athanatos

Copy link
Copy Markdown
Contributor

jenkins test make check

@NitzanMordhai

Copy link
Copy Markdown
Contributor

@shreya-subramanian can you please check the teuthology results:
/a/skanta-2025-06-16_14:23:07-rados-wip-bharath11-testing-2025-06-15-1504-distro-default-smithi/8331031
/a/skanta-2025-06-16_14:23:07-rados-wip-bharath11-testing-2025-06-15-1504-distro-default-smithi/8331069

I think they are related to that PR

@athanatos

Copy link
Copy Markdown
Contributor

jenkins test make check

@athanatos
athanatos merged commit 9469235 into ceph:main Jul 17, 2025
@Naveenaidu

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants