Repository navigation
osd/PeeringState: ignore stale backfill reservation replies - #74340
Open
yulongshi0816 wants to merge 1 commit into
Open
yulongshi0816 wants to merge 1 commit into
yulongshi0816 wants to merge 1 commit into
Conversation
The primary does not wait for an ack after it sends RELEASE for its backfill reservations, so a GRANT or REJECT_TOOFULL that a backfill target sent before it got the RELEASE can be processed after the primary has moved on. Active already discards REVOKE_TOOFULL and REVOKE for this reason, but GRANT and REJECT_TOOFULL are only discarded in NotBackfilling. When one of them arrives in WaitLocalBackfillReserved, for example after a revoke made the primary retry, the PG enters Crashed: bad state machine event in state 'Started/Primary/Active/WaitLocalBackfillReserved': ... RemoteReservationRejectedTooFull WaitLocalBackfillReserved used to discard RemoteBackfillReserved (https://tracker.ceph.com/issues/44248), but the custom_reaction was dropped from its reaction list when pool migration was added in 899f7e6, leaving only the unused react(). Discard both events in Active, like the two revokes, so that every Active state ignores them unless it is waiting for one. Remove the now redundant handlers from NotBackfilling and the unused one from WaitLocalBackfillReserved. Add a TestPeeringState case that delivers stale replies in WaitLocalBackfillReserved and Backfilling. Fixes: https://tracker.ceph.com/issues/77096 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The primary does not wait for an ack after releasing its backfill reservations, so a GRANT or REJECT_TOOFULL sent by a backfill target before it got the RELEASE can be processed several transitions later. In https://tracker.ceph.com/issues/77096 a REJECT_TOOFULL from the previous attempt arrived in
WaitLocalBackfillReservedafter a revoke made the primary retry, and the PG went toCrashed.Of the four replies a backfill target can send (GRANT, REJECT_TOOFULL, REVOKE_TOOFULL, REVOKE),
Activealready discards the two revokes. GRANT and REJECT_TOOFULL were only discarded inNotBackfilling.WaitLocalBackfillReservedused to discard GRANT (#33525, https://tracker.ceph.com/issues/44248), but thecustom_reactionwas dropped from its reaction list in 899f7e6 (pool migration), leaving only an unusedreact(). Tentacle still has it.This PR discards GRANT and REJECT_TOOFULL in
Active, like the revokes, so anyActivestate that isn't waiting for them ignores them.WaitRemoteBackfillReservedandBackfillingkeep their own handlers. The redundantNotBackfillinghandlers and the unusedWaitLocalBackfillReservedone are removed.A stale GRANT that lands in a new
WaitRemoteBackfillReservedis still counted as a reply to the new attempt; fixing that needs a RELEASE ack and is out of scope here.Fixes: https://tracker.ceph.com/issues/77096
Testing
New
TestPeeringStatecaseIssue77096: the primary is held inWaitLocalBackfillReserved(new mock flaginject_local_reservation_stall), gets a stale REJECT_TOOFULL and GRANT, then backfills (with a stale GRANT whileBackfilling) and goes to active+clean.Issue77096unittest_peeringstatebad state machine event in state 'Started/Primary/Active/WaitLocalBackfillReserved': ... RemoteReservationRejectedTooFullChecklist
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.