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

Only write ref key once when writing with prune_previous_versions (#1… #1571

Merged
merged 1 commit into from
May 15, 2024

Conversation

poodlewars
Copy link
Collaborator

…560)

What does this implement or fix?

We should only write the version ref key once when we write with prune_previous_versions=True. Currently we are writing it twice - once after we write the tombstone all and once when we write the new version. This means that there is a period of time where the symbol is unreadable.

This was fixed a while ago with PR #1104 but regressed with PR #1355.

Reference Issues/PRs

What does this implement or fix?

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?

)

#### What does this implement or fix?

We should only write the version ref key once when we write with
`prune_previous_versions=True`. Currently we are writing it twice - once
after we write the tombstone all and once when we write the new version.
This means that there is a period of time where the symbol is
unreadable.

This was fixed a while ago with PR #1104 but regressed with PR #1355.
@poodlewars poodlewars added the bug Something isn't working label May 15, 2024
@poodlewars poodlewars merged commit 45ddb17 into 4.4.x May 15, 2024
111 checks passed
@poodlewars poodlewars deleted the 4.4.x-race-fix branch May 15, 2024 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant