-
Notifications
You must be signed in to change notification settings - Fork 287
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
sink(ticdc): Fix a slice overwriting problem #7759
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. |
/cc @asddongmen |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: f1e75cd
|
@zhaoxinyu: 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-integration-test |
/run-integration-test |
/merge |
/run-integration-test |
1 similar comment
/run-integration-test |
/run-integration-test tidb=release-6.4 |
/run-integration-test |
/run-integration-test tidb=f5487e3f2596cdd63ae9840606c7fff3fb539e03 |
/run-integration-test tidb=@f5487e3f2596cdd63ae9840606c7fff3fb539e03 |
/run-integration-test /tidb=/pr/39427 |
/run-integration-test tidb=f5487e3f2596cdd63ae9840606c7fff3fb539e03 |
2 similar comments
/run-integration-test tidb=f5487e3f2596cdd63ae9840606c7fff3fb539e03 |
/run-integration-test tidb=f5487e3f2596cdd63ae9840606c7fff3fb539e03 |
What problem does this PR solve?
Issue Number: ref #6797
What is changed and how it works?
Before this PR:
When iterating
events
in L143:tiflow/cdc/sinkv2/eventsink/cloudstorage/dml_worker.go
Lines 135 to 143 in e7e2894
some items may have been mistakenly overwritten by L256, so the table checkpoint will not be updated anymore.
tiflow/cdc/sinkv2/eventsink/cloudstorage/dml_worker.go
Lines 255 to 257 in e7e2894
After this PR:
Clone a new slice to detach with the old one, so as to prevent the slice overwriting problem from happening.
Check List
Tests
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note