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

Unset time from children tablets upon initialization #253

Merged
merged 4 commits into from
Jul 26, 2023

Conversation

vaibhav-yb
Copy link
Collaborator

@vaibhav-yb vaibhav-yb commented Jul 25, 2023

Problem

It is possible for a transaction which is committed on a parent tablet that its APPLY records are distributed on both the children tablets after split. Now this APPLY record can have a lower commit time than the change records we receive from the parent tablets.

So after https://phorge.dev.yugabyte.com/D25399 was merged, if we do not reset the time for children tablets, we will end up filtering some records and end up in a data loss situation.

Solution

While adding the children tablets for polling, we are now simply resetting/unsetting the time back to 0 so that when the first GetChanges call happens, it uses this default value only.

@vaibhav-yb vaibhav-yb added bug Something isn't working enhancement New feature or request labels Jul 25, 2023
@vaibhav-yb vaibhav-yb self-assigned this Jul 25, 2023
@vaibhav-yb vaibhav-yb merged commit f10c5eb into main Jul 26, 2023
0 of 2 checks passed
@vaibhav-yb vaibhav-yb deleted the patch-unset-time branch August 18, 2023 06:11
Sumukh-Phalgaonkar pushed a commit to Sumukh-Phalgaonkar/debezium-connector-yugabytedb that referenced this pull request Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants