Skip to content

fix(predMove): use the predicate move timestamp to write the schema #7862

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

Merged
merged 1 commit into from
May 26, 2021

Conversation

NamanJain8
Copy link
Contributor

@NamanJain8 NamanJain8 commented May 26, 2021

In predicate move, we were using kv.Version while writing the schema at receiver, but we delete the schema at in.ReadTs. This fails when we move the same tablet from Group 1 -> Group 2 -> Group 1 if the schema for that predicate doesn't change between those 2 moves.

This happens because the schema written at t1 was cleaned at timestamp t2 (t2>t1) while doing 1st predicate move. And in 2nd predicate move (G2 -> G1), we were writing the schema back at timestamp t1. Hence, the schema was written below the discard timestamp t2 and does not gets reflected.
(cherry picked from commit 64b71b6)


This change is Reviewable

(cherry picked from commit 64b71b6)
@NamanJain8 NamanJain8 merged commit 37b2211 into master May 26, 2021
@NamanJain8 NamanJain8 deleted the naman/master/pred-move-fix branch May 26, 2021 14:24
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