Repository navigation
fix(rsync): close the keepalive cancellation race (RIG-11982) - #251
Open
rigel-mintaka wants to merge 4 commits into
Open
rigel-mintaka wants to merge 4 commits into
rigel-mintaka wants to merge 4 commits into
Conversation
Refs: RIG-11982 Co-Authored-By: Matt Wilkinson <matt@rigel.build> Co-authored-by: Matt Wilkinson <matt@rigel.build>
Refs: RIG-11982 Co-Authored-By: Matt Wilkinson <matt@rigel.build>
Refs: RIG-11982 Co-Authored-By: Matt Wilkinson <matt@rigel.build>
Refs: RIG-11982 Co-Authored-By: Matt Wilkinson <matt@rigel.build>
Contributor
Author
Review roundsRound 1 at
Round 2 at
Head |
Contributor
Author
|
All-clear at ded402d |
This branch had an error being deployed
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.
What does this do
Fixes the flaky rsync keepalive test. Its cancel now fires on the first keepalive frame, from the write path. Also, when the mux's timeout check sees a cancel and a due timeout in the same pass, it now returns the cancel.
Why do we need it
blocked_sender_sends_keepalives_instead_of_timing_outfailed 2 of 8 times inside the fullpi-builtinssuite, even after nebula#221. A polling thread raced the 2 s timeout. Cancelling on a later keepalive was not enough either: the frame is only queued, so a timeout could be seen in the same pass before the write set cancel.Summary
mux.rs:cancel_before_timeoutat the two timeout checks that read a cancel flag (settle,read_data). A cancel is the side's first failure, so this cannot hide a real timeout.check_timeout; cancel wins over a due timeout, and a timeout stays RERR_TIMEOUT without cancel.Verification
On macpro2013, one staged build:
cargo fmt --package pi-builtinsandcargo clippy -p pi-builtinsare clean.Two review rounds; all-clear at the head. Two lows remain (test coverage only).
Step-up signal: the
implement-rustrun took 1 h 25 min, got 2 of 20 runs and no control.implement-hard-rustreached the cause in the product code, then fixed the review's remaining race.Risks
A host cancel during a real timeout now reports a cancel, not a timeout. Rollback: revert this PR.
Spec impact
Spec-impact: none
Checks skipped:
nebula has no pre-push hook config; GitHub Actions ci.yaml runs its checksRefs RIG-11982
Co-authored-by: Matt Wilkinson matt@rigel.build