-
Notifications
You must be signed in to change notification settings - Fork 2.1k
mem: Cleanup resources of done streams immediately #22064
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1611,6 +1611,12 @@ impl NestedLoopJoinStream { | |
| } | ||
| } | ||
|
|
||
| // If the left stream is fully exhausted, release its resources so the | ||
| // upstream pipeline can be torn down before we move on to probing. | ||
| if self.left_exhausted { | ||
| active.left_stream = None; | ||
| } | ||
|
|
||
| if active.pending_batches.is_empty() { | ||
| // No data at all — go directly to Done | ||
| self.left_exhausted = true; | ||
|
Comment on lines
1621
to
1622
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you forgot to update this as well
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No bc above it can be converted back to false. |
||
|
|
||
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.
maybe there are cases that left exhausted is true and left stream is not None, because what is the reason to have both exhausted flag and Option
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.
Yes replied above