The Wayback Machine - https://web.archive.org/web/20201121003719/https://github.com/github/gh-ost/pull/452
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

timestamp/datetime submillis corruption fix #452

Merged
merged 4 commits into from Jul 21, 2017

Conversation

@shlomi-noach
Copy link
Contributor

@shlomi-noach shlomi-noach commented Jul 19, 2017

fixes #450

This PR will fix the following issue: when applying events from binlog and where column type is TIMESTAMP(6) or DATETIME(6), submillis can get corrupted. In particular this happens when submillis are 0*. For example, the value 2016-10-31 11:22:33.012300 turns to 2016-10-31 11:22:33.123000.

Initial commit adds a test to reproduce & validate the problem.

Shlomi Noach added 2 commits Jul 19, 2017
@shlomi-noach shlomi-noach temporarily deployed to production/mysql_role=ghost_testing Jul 19, 2017 Inactive
@shlomi-noach shlomi-noach temporarily deployed to production/mysql_role=ghost_testing Jul 19, 2017 Inactive
@shlomi-noach
Copy link
Contributor Author

@shlomi-noach shlomi-noach commented Jul 19, 2017

Sent to testing

@shlomi-noach shlomi-noach temporarily deployed to production/mysql_role=ghost_testing Jul 19, 2017 Inactive
@shlomi-noach shlomi-noach temporarily deployed to production/mysql_role=ghost_testing Jul 20, 2017 Inactive
@shlomi-noach shlomi-noach merged commit 40eb800 into master Jul 21, 2017
3 checks passed
3 checks passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
gh-ost-build-deploy-tarball Build #7356786 succeeded in 12s
Details
@shlomi-noach shlomi-noach deleted the datetime-6-millis-corruption branch Jul 21, 2017
@shlomi-noach
Copy link
Contributor Author

@shlomi-noach shlomi-noach commented Jul 21, 2017

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

Successfully merging this pull request may close these issues.

2 participants
You can’t perform that action at this time.