-
Notifications
You must be signed in to change notification settings - Fork 286
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
api,config(ticdc): support update transaction-atomicity and protocol via config file (#7980) #8022
api,config(ticdc): support update transaction-atomicity and protocol via config file (#7980) #8022
Conversation
[REVIEW NOTIFICATION] This pull request has not been approved. 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. |
43e361e
to
7f7572f
Compare
…via config file (pingcap#7980) close pingcap#7935
7f7572f
to
cc19ca1
Compare
/run-all-tests |
/run-verify |
1 similar comment
/run-verify |
Codecov Report
Additional details and impacted files
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## release-6.1 #8022 +/- ##
================================================
Coverage ? 56.5102%
================================================
Files ? 548
Lines ? 71656
Branches ? 0
================================================
Hits ? 40493
Misses ? 27298
Partials ? 3865 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: cc19ca1
|
@ti-chi-bot: 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. |
/run-dm-integration-test |
/run-kafka-integration-test |
This is an automated cherry-pick of #7980
What problem does this PR solve?
Issue Number: close #7935
What is changed and how it works?
defaultMqTxnAtomicity
anddefaultMysqlTxnAtomicity
withdefaultTxnAtomicity
. Remove the logic for changing default value of TxnAtomicity) and simplify such logic inShouldSplitTxn
andvalidate
.Note compatibility change: After this pr,
transaction-atomicity
will not be automatically changed when creating changefeed and an error will be returned when any incompatible configuration is encountered.Check List
Tests
curl -X POST -H "'Content-type':'application/json'" http://127.0.0.1:8300/api/v1/changefeeds -d '{"changefeed_id":"test","sink_uri":"blackhole://root@10.1.1.1", "sink_config":{"protocol":"canal", "transaction-atomicity":"table"}}'
, then pause changefeedcurl -X PUT -H "'Content-type':'application/json'" http://127.0.0.1:8300/api/v1/changefeeds/test -d '{"sink_config":{"protocol":"canal-json", "transaction-atomicity":"none"}}'
, then query config:curl -X PUT -H "'Content-type':'application/json'" http://127.0.0.1:8300/api/v1/changefeeds/test -d '{"sink_uri":"blackhole://root@10.1.1.1?protocol=canal&transaction-atomicity=table", "sink_config":{"protocol":"avro", "transaction-atomicity":"none"}}'
curl -X PUT -H "'Content-type':'application/json'" http://127.0.0.1:8300/api/v1/changefeeds/test -d '{"sink_config":{"protocol":"avro", "transaction-atomicity":"none"}}'
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note