Skip to content

fix: flow graph should free function resource after all node close #42731

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

Merged
merged 1 commit into from
Jun 13, 2025

Conversation

aoiasd
Copy link
Contributor

@aoiasd aoiasd commented Jun 13, 2025

relate: #42730

@sre-ci-robot sre-ci-robot added the size/S Denotes a PR that changes 10-29 lines. label Jun 13, 2025
@mergify mergify bot added dco-passed DCO check passed. kind/bug Issues or changes related a bug labels Jun 13, 2025
@chyezh
Copy link
Contributor

chyezh commented Jun 13, 2025

/lgtm

Copy link
Member

@liliu-z liliu-z left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@sre-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: aoiasd, 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@@ -171,7 +171,7 @@ func (eNode *embeddingNode) Operate(in []Msg) []Msg {
return []Msg{fgMsg}
}

func (eNode *embeddingNode) Close() {
func (eNode *embeddingNode) Free() {
for _, runner := range eNode.functionRunners {
runner.Close()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any external usage for now?

Copy link

codecov bot commented Jun 13, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.53%. Comparing base (9976e8e) to head (b4fa511).
Report is 4 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           master   #42731       +/-   ##
===========================================
+ Coverage   72.76%   80.53%    +7.76%     
===========================================
  Files         341     1552     +1211     
  Lines       31908   220977   +189069     
===========================================
+ Hits        23218   177956   +154738     
- Misses       8690    36644    +27954     
- Partials        0     6377     +6377     
Components Coverage Δ
Client 79.47% <ø> (∅)
Core 72.79% <ø> (+0.03%) ⬆️
Go 82.06% <100.00%> (∅)
Files with missing lines Coverage Δ
.../flushcommon/pipeline/flow_graph_embedding_node.go 85.57% <100.00%> (ø)
internal/querynodev2/pipeline/pipeline.go 82.35% <ø> (ø)
internal/util/flowgraph/flow_graph.go 79.12% <100.00%> (ø)
internal/util/flowgraph/node.go 85.82% <100.00%> (ø)

... and 1209 files with indirect coverage changes

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

@yanliang567 yanliang567 added this to the 2.6.0 milestone Jun 13, 2025
@mergify mergify bot added the ci-passed label Jun 13, 2025
@sre-ci-robot sre-ci-robot merged commit 201e980 into milvus-io:master Jun 13, 2025
24 of 25 checks passed
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.

5 participants