Repository navigation
Fixes #3982 #3985
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
Merged
Merged
Fixes #3982 #3985
Changes from all commits
Commits
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
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.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Spool wakes target an aborted consumer
When registrations overlap,
register_hook_v2_replay_consumercan attach the displaced owner's wake after the new owner's wake. The displaced task is aborted, so new records wait for the live consumer's 30-second sweep.Learn more
The registry insertion determines which graph owns the data root, but attaching its filesystem wake happens afterward. Another registration can replace the first registry entry and attach its wake before the first registration reaches the watch. The first then overwrites the second wake; its task is aborted when it tries to save its handle, so the watcher keeps notifying a task that cannot drain records. The live task still polls on the replay interval, so the result is delayed delivery rather than permanent loss.
Example: Registration A inserts its entry and pauses. Registration B replaces it and attaches wake B. A attaches wake A, then aborts its own task because its entry is gone. An appended record wakes A instead of B and waits until B's next interval sweep.
Recommended fix: Serialize registry ownership changes with wake attachment, or conditionally attach a wake only when its registration still owns the data root. Ensure that a displaced registration cannot overwrite the active watch target after its registry entry has been replaced.
Was this helpful? React with 👍 or 👎 to provide feedback.