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

Merged
merged 1 commit into from
Dec 19, 2019

Conversation

zier-one
Copy link
Contributor

@zier-one zier-one commented Dec 19, 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

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

@suzaku
Copy link
Contributor

suzaku commented Dec 19, 2019

Add a test case that could reproduce the bug?

@zier-one
Copy link
Contributor Author

Add a test case that could reproduce the bug?

fine

@zier-one
Copy link
Contributor Author

/run-all-tests

@zier-one zier-one mentioned this pull request Dec 19, 2019
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

@sre-bot
Copy link

sre-bot commented Dec 19, 2019

/run-all-tests

@sre-bot
Copy link

sre-bot commented Dec 19, 2019

cherry pick to release-3.1 in PR #854

@sre-bot
Copy link

sre-bot commented Dec 19, 2019

cherry pick to release-2.1 failed

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.

table not sync
4 participants