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(rollups): Write rolled-up keys at ts+1 (#7957) #7959

Merged
merged 1 commit into from
Jul 27, 2021

Conversation

ahsanbarkati
Copy link
Contributor

@ahsanbarkati ahsanbarkati commented Jul 27, 2021

Write rolled up keys at (max ts of the deltas + 1) because if we write
the rolled-up keys at the same ts as that of the delta, then in case of
WAL replay the rolled-up key would get over-written by the delta which
can bring DB to an invalid state.


This change is Reviewable

Write rolled up keys at (max ts of the deltas + 1) because if we write
the rolled-up keys at the same ts as that of the delta, then in case of
WAL replay the rolled-up key would get over-written by the delta which
can bring DB to an invalid state.
@ahsanbarkati ahsanbarkati merged commit 3831b49 into master Jul 27, 2021
@ahsanbarkati ahsanbarkati deleted the ahsan/cherry/key-not-found branch July 27, 2021 13:57
ahsanbarkati added a commit that referenced this pull request Sep 3, 2021
Write rolled up keys at (max ts of the deltas + 1) because if we write
the rolled-up keys at the same ts as that of the delta, then in case of
WAL replay the rolled-up key would get over-written by the delta which
can bring DB to an invalid state.

(cherry picked from commit 3831b49)
danielmai pushed a commit that referenced this pull request Sep 3, 2021
Write rolled up keys at (max ts of the deltas + 1) because if we write
the rolled-up keys at the same ts as that of the delta, then in case of
WAL replay the rolled-up key would get over-written by the delta which
can bring DB to an invalid state.

(cherry picked from commit 3831b49)
(cherry picked from commit 4b6b97d)
joshua-goldstein pushed a commit that referenced this pull request Nov 28, 2022
Write rolled up keys at (max ts of the deltas + 1) because if we write
the rolled-up keys at the same ts as that of the delta, then in case of
WAL replay the rolled-up key would get over-written by the delta which
can bring DB to an invalid state.

(cherry picked from commit 3831b49)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants