Skip to content
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

Merged
merged 3 commits into from
Apr 11, 2024

Conversation

tedxu
Copy link
Contributor

@tedxu tedxu commented Mar 22, 2024

See #31679

@sre-ci-robot sre-ci-robot added the size/XXL Denotes a PR that changes 1000+ lines. label Mar 22, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/feature Issues related to feature request from users do-not-merge/missing-related-issue labels Mar 22, 2024
Copy link
Contributor

mergify bot commented Mar 22, 2024

@tedxu Please associate the related issue to the body of your Pull Request. (eg. “issue: #”)

Copy link

codecov bot commented Mar 22, 2024

Codecov Report

Attention: Patch coverage is 88.05621% with 51 lines in your changes are missing coverage. Please review.

Project coverage is 81.68%. Comparing base (90bed1c) to head (5c0e0c8).
Report is 18 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            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     
Files Coverage Δ
internal/storage/serde.go 87.23% <88.05%> (-1.91%) ⬇️

... and 41 files with indirect coverage changes

Copy link
Contributor

mergify bot commented Mar 26, 2024

@tedxu E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@tedxu
Copy link
Contributor Author

tedxu commented Mar 26, 2024

/run-cpu-e2e

Copy link
Contributor

mergify bot commented Mar 28, 2024

@tedxu E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@tedxu
Copy link
Contributor Author

tedxu commented Mar 28, 2024

/run-cpu-e2e

@mergify mergify bot added the ci-passed label Mar 28, 2024
if err := bsw.writeBinlogHeaders(&b); err != nil {
return nil, err
}
if _, err := b.Write(bsw.buf.Bytes()); err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to the doc of buffer.Writer, err will always be nil and might be panic with ErrTooLarge. Please remove the err check here, might need to capture panic here.
image

Copy link
Contributor Author

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.

@XuanYang-cn
Copy link
Contributor

/lgtm


// selectiveRecord is a Record that only contains a single field, reusing existing Record.
type selectiveRecord struct {
Record
Copy link
Contributor

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

@sre-ci-robot sre-ci-robot removed the lgtm label Apr 9, 2024
@mergify mergify bot removed the ci-passed label Apr 9, 2024
Copy link
Contributor

mergify bot commented Apr 9, 2024

@tedxu E2e jenkins job failed, comment /run-cpu-e2e can trigger the job again.

@tedxu
Copy link
Contributor Author

tedxu commented Apr 10, 2024

/run-cpu-e2e

@mergify mergify bot added the ci-passed label Apr 11, 2024
Copy link
Contributor

@congqixia congqixia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@sre-ci-robot
Copy link
Contributor

[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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot sre-ci-robot merged commit dc5ea6f into milvus-io:master Apr 11, 2024
15 checks passed
@tedxu tedxu deleted the enhance/serialize_writer branch April 23, 2024 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved ci-passed dco-passed DCO check passed. kind/feature Issues related to feature request from users lgtm size/XXL Denotes a PR that changes 1000+ lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants