-
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
sink/mq: fix empty value in open protocol #2615
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
// Some transactions could generate empty row change event, such as | ||
// begin; insert into t (id) values (1); delete from t where id=1; commit; | ||
// Just ignore these row changed events | ||
if len(e.Columns) == 0 && len(e.PreColumns) == 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to add the issue link here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMHO we can trace the issue from commit message and pr description.
/run-all-tests |
/run-all-tests |
/run-integration-tests |
Codecov Report
@@ Coverage Diff @@
## master #2615 +/- ##
================================================
+ Coverage 56.0786% 61.1988% +5.1202%
================================================
Files 169 161 -8
Lines 20605 17917 -2688
================================================
- Hits 11555 10965 -590
+ Misses 7919 5955 -1964
+ Partials 1131 997 -134 |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 563e5da
|
/merge |
/run-integration-tests |
/run-integration-tests |
In response to a cherrypick label: new pull request created: #2619. |
In response to a cherrypick label: new pull request created: #2620. |
In response to a cherrypick label: new pull request created: #2621. |
In response to a cherrypick label: new pull request created: #2622. |
What problem does this PR solve?
Fix the open protocol part of #2612
Note we still need to confirm what is the right behavior in protocol canal, canal-json, avro, maxwell for empty row change.
What is changed and how it works?
Ignore empty row change events in open protocol
Check List
Tests
Release note