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

Protect DataCoord from calculating segment lines by stale log entries num #23069

Merged
merged 1 commit into from Mar 28, 2023

Conversation

yah01
Copy link
Member

@yah01 yah01 commented Mar 28, 2023

/kind improvement
related #22952
All Flush / Compact will re-calculate the number of rows by the method ReCalcRowCount, then we can protect the meta by only respect this value when it's not 0

@sre-ci-robot sre-ci-robot added the kind/improvement Changes related to something improve, likes ut and code refactor label Mar 28, 2023
@sre-ci-robot sre-ci-robot added the size/XS Denotes a PR that changes 0-9 lines. label Mar 28, 2023
@mergify mergify bot added the dco-passed DCO check passed. label Mar 28, 2023
@sre-ci-robot sre-ci-robot added size/S Denotes a PR that changes 10-29 lines. and removed size/XS Denotes a PR that changes 0-9 lines. labels Mar 28, 2023
@mergify
Copy link
Contributor

mergify bot commented Mar 28, 2023

@yah01 ut workflow job failed, comment rerun ut can trigger the job again.

@codecov
Copy link

codecov bot commented Mar 28, 2023

Codecov Report

Merging #23069 (5a32fc6) into 2.2.5 (a3e4b74) will decrease coverage by 0.03%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##            2.2.5   #23069      +/-   ##
==========================================
- Coverage   81.56%   81.54%   -0.03%     
==========================================
  Files         709      709              
  Lines      100035   100050      +15     
==========================================
- Hits        81595    81584      -11     
- Misses      15273    15291      +18     
- Partials     3167     3175       +8     
Impacted Files Coverage Δ
internal/datacoord/meta.go 85.99% <66.66%> (-0.40%) ⬇️
internal/datacoord/services.go 83.35% <100.00%> (ø)
internal/util/segmentutil/utils.go 100.00% <100.00%> (ø)

... and 18 files with indirect coverage changes

@mergify
Copy link
Contributor

mergify bot commented Mar 28, 2023

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

@yah01
Copy link
Member Author

yah01 commented Mar 28, 2023

/run-cpu-e2e

@mergify
Copy link
Contributor

mergify bot commented Mar 28, 2023

@yah01 ut workflow job failed, comment rerun ut can trigger the job again.

… num

Signed-off-by: yah01 <yang.cen@zilliz.com>
@mergify mergify bot added the ci-passed label Mar 28, 2023
@xiaofan-luan
Copy link
Contributor

/lgtm
/approve

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: xiaofan-luan, yah01

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 0c729b3 into milvus-io:2.2.5 Mar 28, 2023
9 checks passed
yah01 added a commit to yah01/milvus that referenced this pull request Mar 29, 2023
sre-ci-robot pushed a commit that referenced this pull request Mar 30, 2023
… num (#23069) (#23092)

Signed-off-by: yah01 <yang.cen@zilliz.com>
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/improvement Changes related to something improve, likes ut and code refactor lgtm size/S Denotes a PR that changes 10-29 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants