Repository navigation
id(waiting): release-only store path — stop growing the arrived set per applied event (#1730) #3752
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
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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.
The existing
test_a_hold_of_an_arrived_key_is_skipped_and_leaves_no_rowinpkgs/id/src/event_store/ingest.rscallsMirror::releasewithout storing the event, then holds the same key again and assertsHold::Skippedat line 3147. With this change, neither the pool nor the durable store remembers that key, so the second hold returnsHold::Heldand the assertion fails. Update that regression test to exercise the intended release-only contract; otherwise the existing library test suite remains broken.Useful? React with 👍 / 👎.
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.
Fixed — and thank you, the name-filtered waiting run I did first missed exactly this. The history matters: this PR's fix is from Nov 1, and
test_a_hold_of_an_arrived_key_is_skipped_and_leaves_no_rowlanded Nov 2 in ea6d79a (#3911), pinning at the Mirror level a contract that rested on the store recording every released key in the pool's arrived set — the growth #1730 removes.Updated the test to the release-only contract (
test_a_hold_of_a_released_key_is_held_again_release_only_contract): a Mirror-level hold after a release is a fresh hold whose single row is its own, with the layering stated in the comment — duplicate/replay recognition for an already-applied event lives in the store's applied table above the Mirror (that is #1730's acceptance wording), while #3911's restore guards still refuse keys recorded through the pool's standalone insert/park protocol. Fullcargo test -p id -p id-coreis running to catch any other test resting on the old recording; results follow on the PR before merge.