-
Notifications
You must be signed in to change notification settings - Fork 3.6k
fix: resolve SessionWatcher goroutine leak and unstable UT in querycoordv2 #45627
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: resolve SessionWatcher goroutine leak and unstable UT in querycoordv2 #45627
Conversation
|
[ci-v2-notice]
To rerun ci-v2 checks, comment with:
If you have any questions or requests, please contact @zhikunyao. |
|
/ci-rerun-ut-go |
|
@congqixia cpu-e2e job failed, comment |
|
/run-cpu-e2e |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #45627 +/- ##
===========================================
- Coverage 83.18% 76.50% -6.68%
===========================================
Files 521 1875 +1354
Lines 81313 292178 +210865
===========================================
+ Hits 67642 223539 +155897
- Misses 13671 61240 +47569
- Partials 0 7399 +7399
🚀 New features to boost your workflow:
|
|
@congqixia cpu-e2e job failed, comment |
1 similar comment
|
@congqixia cpu-e2e job failed, comment |
c06be7a to
d95492a
Compare
|
@congqixia cpu-e2e job failed, comment |
…ordv2 Related to milvus-io#44620 Related to unstable ut "internal/querycoordv2 TestServer/TestNodeUp" Introduce SessionWatcher interface to fix race condition and goroutine leak that caused unstable unit test TestServer/TestNodeUp. Changes: - Add SessionWatcher interface with EventChannel() and Stop() methods - Refactor WatchServices() to return SessionWatcher instead of raw channel - Fix cleanup order in QueryCoordV2: stop watcher before session - Update DataCoord, ConnectionManager to use SessionWatcher - Add MockSessionWatcher for testing Fixes race condition between session context cancellation and internal loop exit. Eliminates goroutine leak by providing explicit lifecycle management. Signed-off-by: Congqi Xia <[email protected]>
Signed-off-by: Congqi Xia <[email protected]>
d95492a to
9062071
Compare
|
[ci-v2-notice]
To rerun ci-v2 checks, comment with:
If you have any questions or requests, please contact @zhikunyao. |
Signed-off-by: Congqi Xia <[email protected]>
|
/ci-rerun-ut-integration |
|
@congqixia cpu-e2e job failed, comment |
|
/run-cpu-e2e |
|
/ci-rerun-ut-integration |
1 similar comment
|
/ci-rerun-ut-integration |
liliu-z
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: congqixia, liliu-z 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 |
Related to #44620
Related to unstable ut "internal/querycoordv2 TestServer/TestNodeUp"
Introduce SessionWatcher interface to fix race condition and goroutine leak that caused unstable unit test TestServer/TestNodeUp.
Changes:
Fixes race condition between session context cancellation and internal loop exit. Eliminates goroutine leak by providing explicit lifecycle management.