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

Bug fix: a DDL p-binlog will be ignored when the c-binlog queried from TiKV(#852) #855

Merged
merged 2 commits into from
Dec 20, 2019

Conversation

zier-one
Copy link
Contributor

@zier-one zier-one commented Dec 20, 2019

What problem does this PR solve?

The DDL c-binlogs sent from TiDB include ddl query, ddl job id. But the c-binlog queried from TiKV doesn't include this info. Unfortunately, pump never read the ddl query, ddl job id from p-binlog. So a DDL p-binlog will be ignored when the c-binlog queried from TiKV.

fix: #851

cherry-pick #852

What is changed and how it works?

Copy the ddl query, ddl job id from p-binlog to c-binlog.

Check List

Tests

  • Unit test

leoppro added 2 commits December 20, 2019 02:20
@zier-one
Copy link
Contributor Author

/run-all-tests

Copy link
Contributor

@july2993 july2993 left a comment

Choose a reason for hiding this comment

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

LGTM

@zier-one
Copy link
Contributor Author

blocked by #844

Copy link
Contributor

@suzaku suzaku left a comment

Choose a reason for hiding this comment

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

LGTM

@july2993 july2993 merged commit 06daa51 into pingcap:release-2.1 Dec 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants