-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
feat: adding binlog streaming writer #31537
feat: adding binlog streaming writer #31537
Conversation
@tedxu Please associate the related issue to the body of your Pull Request. (eg. “issue: #”) |
cc76640
to
7c28206
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #31537 +/- ##
==========================================
+ Coverage 81.57% 81.68% +0.11%
==========================================
Files 989 990 +1
Lines 121653 122004 +351
==========================================
+ Hits 99234 99664 +430
+ Misses 18607 18512 -95
- Partials 3812 3828 +16
|
@tedxu E2e jenkins job failed, comment |
/run-cpu-e2e |
cc1989e
to
ac2185c
Compare
@tedxu E2e jenkins job failed, comment |
/run-cpu-e2e |
if err := bsw.writeBinlogHeaders(&b); err != nil { | ||
return nil, err | ||
} | ||
if _, err := b.Write(bsw.buf.Bytes()); err != nil { |
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.
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.
Thanks for the comment!
Well, the redundant error check may not be an issue. As for the ErrTooLarge
panic, I guess we could ignore it as well, since it is thrown only if the writing length reaches max int.
/lgtm |
internal/storage/serde.go
Outdated
|
||
// selectiveRecord is a Record that only contains a single field, reusing existing Record. | ||
type selectiveRecord struct { | ||
Record |
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.
this embeded Record
is not used and duplicated with the r
below causing extra interface usage for each entry
@tedxu E2e jenkins job failed, comment |
/run-cpu-e2e |
Signed-off-by: Ted Xu <[email protected]>
Signed-off-by: Ted Xu <[email protected]>
Signed-off-by: Ted Xu <[email protected]>
2e7c693
to
5c0e0c8
Compare
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: congqixia, tedxu The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
See #31679