-
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
Add penultimate key #1355
Add penultimate key #1355
Conversation
d658563
to
a5b9101
Compare
@@ -20,7 +20,6 @@ struct ReadOptions { | |||
std::optional<bool> set_tz_; | |||
std::optional<bool> optimise_string_memory_; | |||
std::optional<bool> batch_throw_on_error_; | |||
std::optional<bool> read_previous_on_failure_; |
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.
@poodlewars has a PR out that removes this as well, just to be aware for whoever's merging second
a4a5192
to
2093a05
Compare
0cf7fa6
to
19e0c0b
Compare
I ran tests that reliably created ref key errors when run against a replicated AWS bucket, due to out of order replication. With the change from this those errors vanished, so it has solved the problem. |
) #### 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.
) #### 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.
Add the last undeleted key to the version ref key so that the penultimate index can be read even when the most recent version key has not yet been replicated due to AWS out-of-order replication