-
Notifications
You must be signed in to change notification settings - Fork 282
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
codec(ticdc): use handlekey instead of primary key for avro #5601
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. |
/run-all-tests |
I remember handle key is not a "not null unique key", please check it @3AceShowHand |
how do you think @leoppro |
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. @@ Coverage Diff @@
## master #5601 +/- ##
================================================
+ Coverage 56.0768% 56.3082% +0.2313%
================================================
Files 535 673 +138
Lines 70143 78667 +8524
================================================
+ Hits 39334 44296 +4962
- Misses 27078 30226 +3148
- Partials 3731 4145 +414 |
There should be an end-to-end test for this issue. Holding for now. |
I have checked the code, the HandleKey flag is fine. |
/run-all-tests |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 5e10ff5
|
@zhangyangyu: 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. |
9bff5d2
to
4c6cfcd
Compare
/run-all-tests |
/unhold |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 69a3b15
|
In response to a cherrypick label: new pull request created: #5605. |
What problem does this PR solve?
Issue Number: close #5597
What is changed and how it works?
Avro shall use Handle Key as message key in case when there is no primary key, we could still try to use a not null unique key , makes downstream easy to use these events.
When there is no handle key, such as force replica situations, Avro message keys would be null. Downstream consumers need to accomodate for this. (This is already the current behavriour)
Release note