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 rollup keys at ts+1 #7957

Merged
merged 3 commits into from
Jul 26, 2021

Conversation

ahsanbarkati
Copy link
Contributor

@ahsanbarkati ahsanbarkati commented Jul 22, 2021

We should write rolled up keys at (maxTs 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

@ahsanbarkati ahsanbarkati changed the title fix(rollups): Write rollup keys at minTs+1 fix(rollups): Write rollup keys at ts+1 Jul 23, 2021
Copy link
Contributor

@NamanJain8 NamanJain8 left a comment

Choose a reason for hiding this comment

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

:lgtm: Nice work @ahsanbarkati !!

Reviewable status: 0 of 3 files reviewed, all discussions resolved (waiting on @manishrjain)

@ahsanbarkati ahsanbarkati merged commit e797025 into release/v21.03-slash Jul 26, 2021
@ahsanbarkati ahsanbarkati deleted the ahsan/key-not-found branch July 26, 2021 06:25
ahsanbarkati added a commit that referenced this pull request 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.
ahsanbarkati added a commit that referenced this pull request 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.
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