Repository navigation
fix(dash-spv): make stop wait for the tasks the sync loop detaches - #321
Closed
xdustinface wants to merge 1 commit into
Closed
xdustinface wants to merge 1 commit into
xdustinface wants to merge 1 commit into
Conversation
The sync loop runs fork recovery and the stop of a failed loop in detached tasks, each holding a client clone and with it the storage and its lock file. `stop` did not wait for them, so it could return while they still held the lock. They now go into a `JoinSet` that `stop` joins after releasing the `sync_loop` lock. Closes upstream issue 1171 Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Manki reviews one pull request per commit. #313 has the same head commit |
Owner
Author
|
Not dispatched while run 1 on the same commit was open. Replaced. |
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.
Replay of upstream PR 1178 at its initial state, for testing Manki reviews.
The sync loop runs fork recovery (
handle_fork) and the stop of a failed loop (stop_failed) in detached tasks. Each holds a client clone, and with it the storage and its lock file.stop()didn't wait for them, so it could return while they still held the lock (upstream platform issue 5381).JoinSeton the client.stop()joins them after releasing thesync_looplock, which they take themselves. With the loop already taken, they return without acting.Closes upstream issue 1171