-
Notifications
You must be signed in to change notification settings - Fork 289
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
pkg/tz(ticdc): use correct ctx to get timezone #8799
pkg/tz(ticdc): use correct ctx to get timezone #8799
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Test it locally to make sure we use the correct timezone from the ctx.
➜ bin git:(rustin-patch-timezone) ✗ ./cdc cli changefeed create --sink-uri="mysql://root:[email protected]:3306" -c "test1"
Error: [CDC:ErrMySQLConnectionError]fail to open MySQL connection: Error 1298 (HY000): Unknown or incorrect time zone: 'Asia/Shanghai' |
Test it locally to make sure it will bail out when the changefeed timezone is different from server.
➜ bin git:(rustin-patch-timezone) ./cdc cli changefeed create --sink-uri="mysql://root:[email protected]:3306?time-zone=UTC" -c "test3"
Error: [CDC:ErrMySQLInvalidConfig]MySQL config invalid: the timezone of the TiCDC server and the sink-uri are inconsistent. TiCDC server timezone: Asia/Shanghai, sink-uri timezone: UTC. Please make sure that the timezone of the TiCDC server, sink-uri and the downstream database are consistent. |
/test all |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 671c134
|
/retest |
/test all |
1 similar comment
/test all |
@hi-rustin: Your PR was out of date, I have automatically updated it for you. At the same time I will also trigger all tests for you: /run-all-tests
If the CI test fails, you just re-trigger the test that failed and the bot will merge the PR for you after the CI passes. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/retest |
1 similar comment
/retest |
/test cdc-integration-mysql-test /tiflash=release-6.6 /tikv=release-6.6 |
/retest |
In response to a cherrypick label: new pull request created to branch |
In response to a cherrypick label: new pull request created to branch |
What problem does this PR solve?
Issue Number: ref #8798
What is changed and how it works?
Check List
Tests
Questions
Will it cause performance regression or break compatibility?
None
Do you need to update user documentation, design documentation or monitoring documentation?
None
Release note