-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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: Fix collection leak in querynode #36927
Conversation
Signed-off-by: bigsheeper <[email protected]>
@bigsheeper E2e jenkins job failed, comment |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #36927 +/- ##
=======================================
Coverage 80.64% 80.65%
=======================================
Files 1310 1310
Lines 183578 183578
=======================================
+ Hits 148054 148056 +2
+ Misses 30393 30390 -3
- Partials 5131 5132 +1
|
/run-cpu-e2e |
@bigsheeper E2e jenkins job failed, comment |
Signed-off-by: bigsheeper <[email protected]>
Signed-off-by: bigsheeper <[email protected]>
Signed-off-by: bigsheeper <[email protected]>
…0-remove-refcount
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: bigsheeper The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
…0-remove-refcount
Signed-off-by: bigsheeper <[email protected]>
…0-remove-refcount
Signed-off-by: bigsheeper <[email protected]>
@bigsheeper E2e jenkins job failed, comment |
/run-cpu-e2e |
rerun ut |
/lgtm |
defer node.manager.Collection.Unref(req.GetCollectionID(), 1) | ||
defer func() { | ||
if !merr.Ok(status) { | ||
node.manager.Collection.Release(req.GetCollectionID()) |
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.
should not Release, may release collection created by other segment.
If ReleaseCollection fails, it only logs a warning, which can still lead to a collection leak in the query node. |
Remove the reference counting and replace it with the
ReleaseCollection
RPC.issue: #36918