Repository navigation
링크가 끊긴 순간 실패한 벨을 다시 연결된 뒤 한 번 더 울린다 - #896
Merged
Merged
Conversation
…ent away and came back A ring that failed with a Herdr call waited for the pane to move, since the bell might have been typed. When the failure came from the device's link dropping, the pane came back idle at the same state sequence, never moved, and the letter was never rung again. Losing the link now ends that wait.
Contributor
Author
|
Eight-repeat TEMP run of the remote mailbox test on main with this fix (#894): 8/8 passed; 3 of the 8 hit the same race ( |
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.
Related: #892 (main turned red in the remote mailbox lane after it merged)
Summary
remote_delivery::connected_remote_panes_receive_once_and_disconnect_keeps_the_same_letter_pendingtimed out waiting for the bell of the letter sent just before the device disconnects.pane_unavailable), that wait ends, and the letter is tried again once the link is back. A bell that had started a turn would have moved the pane, so this cannot type a second bell into a turn the first one started.Review
herdr-core/src/delivery/doorbell.rs- failure path of the bell: when a failed ring may be retried decides whether a bell can be typed twice.Evidence
pane_unavailable), and the link coming back: with the fix the letter is rung once; withlink_lostdisabled nothing is typed (the CI symptom). herdr-core and hided: 2302 tests pass.doorbell.failed; main 3/4, and the one failure is the only run withdoorbell.failed herdr_call_failedfor that letter, after which the reconnected coordinator connected and published but the letter was never tried again.