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: Check resource when loading deltalogs #37195

Merged
merged 2 commits into from
Oct 29, 2024

Conversation

congqixia
Copy link
Contributor

Related to #36887

LoadDeltaLogs API did not check memory usage. When system is under high delete load pressure, this could result into OOM quit.

This PR add resource check for LoadDeltaLogs actions and separate internal deltalog loading function with public one.

Related to milvus-io#36887

`LoadDeltaLogs` API did not check memory usage. When system is under
high delete load pressure, this could result into OOM quit.

This PR add resource check for `LoadDeltaLogs` actions and separate
internal deltalog loading function with public one.

Signed-off-by: Congqi Xia <[email protected]>
@sre-ci-robot sre-ci-robot added size/S Denotes a PR that changes 10-29 lines. approved labels Oct 28, 2024
@mergify mergify bot added dco-passed DCO check passed. kind/bug Issues or changes related a bug labels Oct 28, 2024
Copy link
Contributor

mergify bot commented Oct 28, 2024

@congqixia go-sdk check failed, comment rerun go-sdk can trigger the job again.

Copy link
Contributor

mergify bot commented Oct 28, 2024

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

@congqixia
Copy link
Contributor Author

rerun go-sdk

@congqixia
Copy link
Contributor Author

/run-cpu-e2e

Copy link
Contributor

mergify bot commented Oct 28, 2024

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

@congqixia
Copy link
Contributor Author

/run-cpu-e2e

1 similar comment
@congqixia
Copy link
Contributor Author

/run-cpu-e2e

Copy link

codecov bot commented Oct 28, 2024

Codecov Report

Attention: Patch coverage is 68.75000% with 5 lines in your changes missing coverage. Please review.

Project coverage is 80.87%. Comparing base (7774b72) to head (16d3ca7).
Report is 15 commits behind head on master.

Files with missing lines Patch % Lines
internal/querynodev2/segments/segment_loader.go 68.75% 3 Missing and 2 partials ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #37195      +/-   ##
==========================================
- Coverage   83.09%   80.87%   -2.23%     
==========================================
  Files        1028     1318     +290     
  Lines      157213   182604   +25391     
==========================================
+ Hits       130634   147673   +17039     
- Misses      21395    29765    +8370     
+ Partials     5184     5166      -18     
Components Coverage Δ
Client ∅ <ø> (∅)
Core 66.89% <0.00%> (∅)
Go 83.15% <68.75%> (+0.03%) ⬆️
Files with missing lines Coverage Δ
internal/querynodev2/segments/segment_loader.go 73.46% <68.75%> (-0.19%) ⬇️

... and 323 files with indirect coverage changes

Copy link
Contributor

mergify bot commented Oct 28, 2024

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

@mergify mergify bot added the ci-passed label Oct 28, 2024
Copy link
Contributor

@XuanYang-cn XuanYang-cn 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, XuanYang-cn

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 5a01357 into milvus-io:master Oct 29, 2024
19 of 20 checks passed
congqixia added a commit to congqixia/milvus that referenced this pull request Oct 29, 2024
Related to milvus-io#36887

`LoadDeltaLogs` API did not check memory usage. When system is under
high delete load pressure, this could result into OOM quit.

This PR add resource check for `LoadDeltaLogs` actions and separate
internal deltalog loading function with public one.

---------

Signed-off-by: Congqi Xia <[email protected]>
congqixia added a commit to congqixia/milvus that referenced this pull request Oct 29, 2024
Related to milvus-io#36887

`LoadDeltaLogs` API did not check memory usage. When system is under
high delete load pressure, this could result into OOM quit.

This PR add resource check for `LoadDeltaLogs` actions and separate
internal deltalog loading function with public one.

---------

Signed-off-by: Congqi Xia <[email protected]>
sre-ci-robot pushed a commit that referenced this pull request Oct 30, 2024
Cherry pick from master
pr: #37195

Related to #36887

`LoadDeltaLogs` API did not check memory usage. When system is under
high delete load pressure, this could result into OOM quit.

This PR add resource check for `LoadDeltaLogs` actions and separate
internal deltalog loading function with public one.

---------

Signed-off-by: Congqi Xia <[email protected]>
sre-ci-robot pushed a commit that referenced this pull request Oct 30, 2024
Cherry pick from master
pr: #37195
Related to #36887

`LoadDeltaLogs` API did not check memory usage. When system is under
high delete load pressure, this could result into OOM quit.

This PR add resource check for `LoadDeltaLogs` actions and separate
internal deltalog loading function with public one.

---------

Signed-off-by: Congqi Xia <[email protected]>
@congqixia congqixia deleted the fix/check_resource_loaddelta branch November 4, 2024 02:21
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/S Denotes a PR that changes 10-29 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants