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

drainer: fix failure to update BIT columns with downstream TiDB #655

Merged
merged 3 commits into from
Jul 1, 2019

Conversation

kennytm
Copy link
Contributor

@kennytm kennytm commented Jun 28, 2019

What problem does this PR solve?

Issue TOOL-1346, which is caused by pingcap/tidb#10988.

What is changed and how it works?

Encode BIT types as integers instead of byte strings. Since the longest value is BIT(64), it is safe to always convert as uint64.

Check List

Tests

  • Manual test (add detailed scripts or steps below)
    • Verified the repro steps in TOOL-1346 are no longer reproducible.

Code changes

Side effects

Related changes

  • Need to cherry-pick to the release branch
    • Needs to cherry-pick to the release-2.1 branch.

@kennytm
Copy link
Contributor Author

kennytm commented Jun 28, 2019

/run-all-tests

@kennytm kennytm requested review from july2993 and suzaku June 28, 2019 17:55
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

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
It may be better to just add test test case in tests/dailytest/case.go test both drainer -> mysq and drainer -> kafka -> mysql

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