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

owner: fix a bug about wrong timing sequence of DDL when add a table to processor #450

Merged
merged 20 commits into from
Apr 10, 2020

Conversation

zier-one
Copy link
Contributor

What problem does this PR solve?

fix a bug about wrong timing sequence of DDL when add a table to processor

What is changed and how it works?

when the owner add a table to a processor, the owner should ensure the global resolvedts won't exceed the startts of the new table

Check List

Tests

  • Unit test
  • Integration test

@zier-one zier-one changed the title fix a bug about wrong timing sequence of DDL when add a table to processor owner: fix a bug about wrong timing sequence of DDL when add a table to processor Apr 10, 2020
@zier-one
Copy link
Contributor Author

/run-all-tests

@zier-one
Copy link
Contributor Author

/run-all-tests

Comment on lines 536 to 537
c.status.ResolvedTs = minResolvedTs
c.status.CheckpointTs = minCheckpointTs
Copy link
Contributor

Choose a reason for hiding this comment

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

these two lines have conflict with L541 and L545. c.sink.EmitCheckpointEvent will be never called?

@zier-one
Copy link
Contributor Author

/run-all-tests

Copy link
Contributor

@amyangfei amyangfei left a comment

Choose a reason for hiding this comment

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

LGTM

@amyangfei amyangfei added component/replica-model Replication model component. LGT1 labels Apr 10, 2020
@zier-one zier-one merged commit 955a693 into pingcap:master Apr 10, 2020
@zier-one zier-one deleted the fix_ddl_2 branch April 13, 2020 03:07
5kbpers pushed a commit to 5kbpers/ticdc that referenced this pull request Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/replica-model Replication model component.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants