Skip to content
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 symbol list bug on compaction (#1324) #1798

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

IvoDD
Copy link
Collaborator

@IvoDD IvoDD commented Aug 28, 2024

Reference Issues/PRs

Fixes #1324

What does this implement or fix?

  • Only adds a symbol list entry on append if there is no previous version
  • Fixes finalize_staged_data to write to the symbol list.
  • Adds a python test for the new behavior.

Any other comments?

Checklist

Checklist for code changes...
  • Have you updated the relevant docstrings, documentation and copyright notice?
  • Is this contribution tested against all ArcticDB's features?
  • Do all exceptions introduced raise appropriate 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?

@IvoDD IvoDD self-assigned this Aug 28, 2024
@IvoDD IvoDD force-pushed the fix-compact-incomplete-symbol-list branch 3 times, most recently from 5263f73 to 521abee Compare August 28, 2024 15:08
@@ -1951,6 +1951,7 @@ def compact_incomplete(
metadata: Optional[Any] = None,
prune_previous_version: Optional[bool] = None,
validate_index: bool = False,
upsert_symbol_list: bool = True,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be a user facing option? For writes, we always write the symbol list key, for appends we only do if there is no version to append to?

@IvoDD IvoDD force-pushed the fix-compact-incomplete-symbol-list branch from 521abee to ca475c5 Compare September 4, 2024 15:08
- Only adds a symbol list entry on append if there is no previous
  version.
- Fixes `finalize_staged_data` to write to the symbol list.
- Adds a python test for the new behavior.
@IvoDD IvoDD force-pushed the fix-compact-incomplete-symbol-list branch from ca475c5 to e9a7aca Compare September 5, 2024 06:54
@IvoDD IvoDD merged commit c6a0567 into master Sep 5, 2024
115 of 116 checks passed
@IvoDD IvoDD deleted the fix-compact-incomplete-symbol-list branch September 5, 2024 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compact_incomplete should only write a symbol list key if the symbol is new
3 participants