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

DBZ-8541 Handle partially overridden transactions #220

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

twthorn
Copy link
Contributor

@twthorn twthorn commented Dec 19, 2024

See ticket
https://issues.redhat.com/browse/DBZ-8541

If we have the task with shards
s1: current
s2: current

Then the first vgtid we will receive will be (this would cause an exception with current code, even though it's valid)
s1: gtid1
s2: current

Then at some point we will get a transaction for s2 as well and will be
s1: gtid1
s2: gtid2

Adapt our logic to gracefully handle these partially overridden VGTIDs.

Also do some miscellaneous improvements

  • Simply vitess epoch provider logic
  • Add tests for gtid, remove unnecessary methods
  • Make validation & other checks more thorough
  • Make handling more general so we fail less often
  • Add more tests for above case and others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant