-
Notifications
You must be signed in to change notification settings - Fork 20
fix: serialize Dial/Listen queue handoff to prevent router token loss #573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
raballew
wants to merge
24
commits into
jumpstarter-dev:main
Choose a base branch
from
raballew:fix-listen-queue-race
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
f12fb64
fix: use CompareAndDelete for race-free listenQueue cleanup
raballew 1783ae0
fix: wrap listenQueue channel in struct to prevent stale cleanup race
raballew e310ebe
fix: retry CompareAndSwap on failure in concurrent Listen() reconnect
raballew 53d992e
fix: give each Listen() goroutine its own channel to prevent stale re…
raballew 191cbf2
fix: reject Dial send to superseded listenQueue via done channel pre-…
raballew 523e7e6
fix: close done channel on all Listen exit paths using sync.Once
raballew ffa54d5
fix: swap defer order to close done channel before map deletion
raballew ad00133
Improve test quality for listen queue race fix
raballew b84ded9
fix: serialize Dial/Listen queue handoff with per-lease mutex
raballew 578a1fd
fix: pass Dial context to sendToListener to prevent mutex deadlock un…
raballew e10b3bd
refactor: replace goto labels with drainChannel helper in test
raballew f60c36b
fix: clean up leaseLocks entries when Listen exits without replacement
raballew 6c76f12
test: add end-to-end deadlock chain test
raballew d186eec
ci: enable race detector in controller test target
raballew ba706d8
fix: resolve golangci-lint goconst and gofmt violations
raballew 44c2e5f
fix: use sendToListener in concurrent dial reconnection test
raballew eb7e0a5
fix: use service methods in listen queue tests instead of raw sync.Ma…
raballew df5f015
fix: serialize closeDone under lease mutex and stop deleting leaseLoc…
raballew 739486d
fix: use non-blocking send in sendToListener to prevent mutex starvation
raballew 2b4e57f
fix: replace raw lease mutex with ref-counted leaseLock to enable saf…
raballew 6d15cdb
test: fix race in concurrent lease lock test and add overlapping list…
raballew 63c9654
ci: add E2E stress test workflow for flakiness detection
raballew 6786ccf
Revert "ci: add E2E stress test workflow for flakiness detection"
raballew 94d3027
fix: drain buffered tokens on Listen supersession and assert gRPC sta…
raballew File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.