-
Notifications
You must be signed in to change notification settings - Fork 94
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
Fix delete snapshot so that it doesn't orphan data keys or delete the wrong key #1973
Merged
Conversation
This file contains 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
* Fix orphaned keys. recurse_index_keys does not assume that the all atom keys are for the same stream id anymore * Fix AggregationClause::process vector iterator invalidation. Not related to the issue but C++ were crashing at runtime because of this. Calling erase invalidates the iterator in a loop.
… keys with more than one symbols in the snapshot
vasil-pashov
requested review from
alexowens90,
willdealtry and
poodlewars
as code owners
November 1, 2024 15:18
vasil-pashov
force-pushed
the
fix-1863
branch
from
November 1, 2024 15:20
ce8904b
to
f57b70d
Compare
vasil-pashov
changed the title
Fix 1863
Fix delete snapshot so that it doesn't orphan data keys or delete the wrong key
Nov 1, 2024
poodlewars
reviewed
Nov 1, 2024
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.
Change looks correct to me, could you share the results of repeating the benchmark from the AtomKeyPacked
PR?
alexowens90
approved these changes
Nov 1, 2024
Results of running time -v for the new change
|
grusev
pushed a commit
that referenced
this pull request
Nov 25, 2024
… wrong key (#1973) #### Reference Issues/PRs Fixes: #1958 Fixes: #1863 #### What does this implement or fix? * Fix orphaned keys. recurse_index_keys does not assume that the all atom keys are for the same stream id anymore * Fix AggregationClause::process vector iterator invalidation. Not related to the issue but C++ were crashing at runtime because of this. Calling erase invalidates the iterator in a loop. #### Any other comments? #### Checklist <details> <summary> Checklist for code changes... </summary> - [ ] Have you updated the relevant docstrings, documentation and copyright notice? - [ ] Is this contribution tested against [all ArcticDB's features](../docs/mkdocs/docs/technical/contributing.md)? - [ ] Do all exceptions introduced raise appropriate [error messages](https://docs.arcticdb.io/error_messages/)? - [ ] Are API changes highlighted in the PR description? - [ ] Is the PR labelled as enhancement or bug so it appears in autogenerated release notes? </details> <!-- Thanks for contributing a Pull Request to ArcticDB! Please ensure you have taken a look at: - ArcticDB's Code of Conduct: https://github.com/man-group/ArcticDB/blob/master/CODE_OF_CONDUCT.md - ArcticDB's Contribution Licensing: https://github.com/man-group/ArcticDB/blob/master/docs/mkdocs/docs/technical/contributing.md#contribution-licensing --> --------- Co-authored-by: Alex Seaton <[email protected]> Co-authored-by: Vasil Pashov <[email protected]>
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.
Reference Issues/PRs
Fixes: #1958
Fixes: #1863
What does this implement or fix?
atom keys are for the same stream id anymore
related to the issue but C++ were crashing at runtime because of this.
Calling erase invalidates the iterator in a loop.
Any other comments?
Checklist
Checklist for code changes...