Skip to content

osd: handle BackfillTooFull in state ReplicaActive - #69048

Merged
SrinivasaBharath merged 2 commits into
ceph:mainfrom
jzhu116-bloomberg:wip-76751
Sep 4, 2026
Merged

SrinivasaBharath merged 2 commits into
ceph:mainfrom
jzhu116-bloomberg:wip-76751

Conversation

@jzhu116-bloomberg

Copy link
Copy Markdown
Contributor

Fixes: https://tracker.ceph.com/issues/76751
Signed-off-by: Jane Zhu [email protected]

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

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@ljflores ljflores left a comment

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.

@jzhu116-bloomberg can you add steps to reproduce this issue to the commit? Also, how about adding a unit test?

@rzarzynski
rzarzynski self-requested a review May 26, 2026 18:10
Comment thread src/osd/PeeringState.cc
@@ -6136,6 +6136,15 @@ void PeeringState::RepWaitBackfillReserved::exit()
pl->get_peering_perf().tinc(rs_repwaitbackfillreserved_latency, dur);
}

boost::statechart::result
PeeringState::RepWaitBackfillReserved::react(const BackfillTooFull &)

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.

The linked bug tracker is about BackfillTooFull in the RepNotRecovering, not RepWaitBackfillReserved. Could you please explain that?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In this PR, a BackfillTooFull handler is added to the ReplicaActive for the nested states to fall to if they don't have their own handlers. Both RepNotRecovering and RepWaitBackfillReserved don't have a handler for BackfillTooFull, hence need to fall to the default handler in ReplicaActive. However the default handler in ReplicaActive, where the event is discarded, doesn't sound correct for the RepWaitBackfillReserved so I added a specific one to handle the event properly.

@jzhu116-bloomberg

Copy link
Copy Markdown
Contributor Author

@jzhu116-bloomberg can you add steps to reproduce this issue to the commit? Also, how about adding a unit test?

Unit tests have been added in d4c1b62

@jzhu116-bloomberg

Copy link
Copy Markdown
Contributor Author

@jzhu116-bloomberg can you add steps to reproduce this issue to the commit? Also, how about adding a unit test?
added the steps to reproduce in the tracker issue

@ljflores

Copy link
Copy Markdown
Member

@jzhu116-bloomberg can you add steps to reproduce this issue to the commit? Also, how about adding a unit test?

Unit tests have been added in d4c1b62

ACK, will take another look!

@ljflores ljflores left a comment

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.

@SrinivasaBharath

Copy link
Copy Markdown
Contributor

This PR has been added to wip-bharath2-testing-20260727.155959-main.

@ljflores

ljflores commented Sep 4, 2026

Copy link
Copy Markdown
Member

RADOS approved: https://tracker.ceph.com/projects/rados/wiki/MAIN#httpstrackercephcomissues78728

Sorry for the delay here, the person assigned to review wasn't available.

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.

4 participants