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

fix: Avoid segment lack caused by deduplicate segment task #34782

Merged
merged 1 commit into from
Jul 22, 2024

Conversation

weiliu1031
Copy link
Contributor

issue: #34781

when balance segment hasn't finished yet, query coord may found 2 loaded copy of segment, then it will generate task to deduplicate, which may cancel the balance task. then the old copy has been released, and the new copy hasn't be ready yet but canceled, then search failed by segment lack.

this PR set deduplicate segment task's proirity to low, to avoid balance segment task canceled by deduplicate task.

@sre-ci-robot sre-ci-robot added the size/M Denotes a PR that changes 30-99 lines. label Jul 18, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/bug Issues or changes related a bug labels Jul 18, 2024
@weiliu1031
Copy link
Contributor Author

rerun ut

@mergify mergify bot added the ci-passed label Jul 19, 2024
Copy link

codecov bot commented Jul 19, 2024

Codecov Report

Attention: Patch coverage is 88.23529% with 2 lines in your changes missing coverage. Please review.

Project coverage is 84.46%. Comparing base (b22e549) to head (d4c5f02).
Report is 9 commits behind head on master.

Current head d4c5f02 differs from pull request most recent head 31cbb01

Please upload reports for the commit 31cbb01 to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #34782      +/-   ##
==========================================
+ Coverage   84.40%   84.46%   +0.05%     
==========================================
  Files         904      904              
  Lines      117777   117783       +6     
==========================================
+ Hits        99413    99484      +71     
+ Misses      13942    13888      -54     
+ Partials     4422     4411      -11     
Files Coverage Δ
internal/querycoordv2/checkers/segment_checker.go 91.66% <100.00%> (+2.55%) ⬆️
internal/querycoordv2/handlers.go 72.28% <83.33%> (+0.20%) ⬆️

... and 29 files with indirect coverage changes

when balance segment hasn't finished yet, query coord may found 2 loaded
copy of segment, then it will generate task to deduplicate, which may
cancel the balance task. then the old copy has been released, and the
new copy hasn't be ready yet but canceled, then search failed by segment
lack.

this PR set deduplicate segment task's proirity to low, to avoid balance
segment task canceled by deduplicate task.

Signed-off-by: Wei Liu <[email protected]>
@mergify mergify bot removed the ci-passed label Jul 22, 2024
@yanliang567 yanliang567 modified the milestone: 2.3.20 Jul 22, 2024
@weiliu1031
Copy link
Contributor Author

rerun ut

@weiliu1031
Copy link
Contributor Author

rerun ut

@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: weiliu1031, xiaofan-luan

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 pushed a commit that referenced this pull request Jul 22, 2024
issue: #34781
pr: #34782
when balance segment hasn't finished yet, query coord may found 2 loaded
copy of segment, then it will generate task to deduplicate, which may
cancel the balance task. then the old copy has been released, and the
new copy hasn't be ready yet but canceled, then search failed by segment
lack.

this PR set deduplicate segment task's proirity to low, to avoid balance
segment task canceled by deduplicate task.

Signed-off-by: Wei Liu <[email protected]>
@mergify mergify bot added the ci-passed label Jul 22, 2024
@sre-ci-robot sre-ci-robot merged commit 40e39ef into milvus-io:master Jul 22, 2024
9 of 10 checks passed
weiliu1031 added a commit to weiliu1031/milvus that referenced this pull request Jul 22, 2024
…#34782)

issue: milvus-io#34781

when balance segment hasn't finished yet, query coord may found 2 loaded
copy of segment, then it will generate task to deduplicate, which may
cancel the balance task. then the old copy has been released, and the
new copy hasn't be ready yet but canceled, then search failed by segment
lack.

this PR set deduplicate segment task's proirity to low, to avoid balance
segment task canceled by deduplicate task.

Signed-off-by: Wei Liu <[email protected]>
xiaofan-luan pushed a commit that referenced this pull request Jul 23, 2024
…34903)

issue: #34781
pr: #34782

when balance segment hasn't finished yet, query coord may found 2 loaded
copy of segment, then it will generate task to deduplicate, which may
cancel the balance task. then the old copy has been released, and the
new copy hasn't be ready yet but canceled, then search failed by segment
lack.

this PR set deduplicate segment task's proirity to low, to avoid balance
segment task canceled by deduplicate task.

Signed-off-by: Wei Liu <[email protected]>
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/bug Issues or changes related a bug lgtm size/M Denotes a PR that changes 30-99 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants