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

enhance: Remove CPU profile to prevent blocking stop progress #40460

Merged
merged 2 commits into from
Mar 13, 2025

Conversation

weiliu1031
Copy link
Contributor

issue: #39735
related to #39726

  • Removed CPU profile dump from util.go's pprof collection
  • Avoid potential blocking in StopCPUProfile() during shutdown
  • Maintain goroutine/heap/block/mutex profiles for diagnostics
  • Ensure safe shutdown timeout handling without profile stalls

@sre-ci-robot sre-ci-robot added the size/M Denotes a PR that changes 30-99 lines. label Mar 7, 2025
@sre-ci-robot sre-ci-robot requested review from xiaocai2333 and yhmo March 7, 2025 08:18
@mergify mergify bot added dco-passed DCO check passed. kind/enhancement Issues or changes related to enhancement labels Mar 7, 2025
@dosubot dosubot bot added the kind/improvement Changes related to something improve, likes ut and code refactor label Mar 7, 2025
Copy link
Contributor

mergify bot commented Mar 7, 2025

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

Copy link
Contributor

mergify bot commented Mar 7, 2025

@weiliu1031 cpp-unit-test check failed, comment rerun cpp-unit-test can trigger the job again.

@weiliu1031
Copy link
Contributor Author

/run-cpu-e2e

@weiliu1031
Copy link
Contributor Author

rerun cpp-unit-test

@weiliu1031
Copy link
Contributor Author

rerun ut

Copy link

codecov bot commented Mar 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.56%. Comparing base (3899b0f) to head (03d6e72).
Report is 15 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #40460      +/-   ##
==========================================
- Coverage   82.19%   80.56%   -1.64%     
==========================================
  Files        1165     1474     +309     
  Lines      179833   207555   +27722     
==========================================
+ Hits       147817   167218   +19401     
- Misses      25965    34277    +8312     
- Partials     6051     6060       +9     
Components Coverage Δ
Client 79.74% <ø> (ø)
Core 70.00% <ø> (∅)
Go 82.32% <ø> (-0.01%) ⬇️

see 335 files with indirect coverage changes

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@mergify mergify bot added the ci-passed label Mar 7, 2025
- Removed CPU profile dump from util.go's pprof collection
- Avoid potential blocking in StopCPUProfile() during shutdown
- Maintain goroutine/heap/block/mutex profiles for diagnostics
- Ensure safe shutdown timeout handling without profile stalls

Signed-off-by: Wei Liu <wei.liu@zilliz.com>
@weiliu1031 weiliu1031 force-pushed the fix_pprof_block_stop_master branch from 3a8e1d9 to 6687b5c Compare March 11, 2025 03:36
@mergify mergify bot removed the ci-passed label Mar 11, 2025
Signed-off-by: Wei Liu <wei.liu@zilliz.com>
@weiliu1031 weiliu1031 force-pushed the fix_pprof_block_stop_master branch from 6687b5c to 03d6e72 Compare March 11, 2025 03:45
@mergify mergify bot added the ci-passed label Mar 11, 2025
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, weiliu1031

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 972e470 into milvus-io:master Mar 13, 2025
20 checks passed
sre-ci-robot pushed a commit that referenced this pull request Mar 13, 2025
pr: #40460
- Removed CPU profile dump from util.go's pprof collection
- Avoid potential blocking in StopCPUProfile() during shutdown
- Maintain goroutine/heap/block/mutex profiles for diagnostics
- Ensure safe shutdown timeout handling without profile stalls

---------

Signed-off-by: Wei Liu <wei.liu@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/enhancement Issues or changes related to enhancement kind/improvement Changes related to something improve, likes ut and code refactor lgtm size/M Denotes a PR that changes 30-99 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants