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

ScanQueryFrameProcessor: Close CursorHolders as we go along. #17152

Merged
merged 4 commits into from
Sep 25, 2024

Conversation

gianm
Copy link
Contributor

@gianm gianm commented Sep 25, 2024

The change in #16533 added CursorHolders to the processor-level Closer. This is problematic when running on an input channel: it means we started keeping around all CursorHolders for all frames we process and closing them when the channel is complete, rather than closing them as we go along.

This patch restores the prior behavior, where resources are closed as we go.

The change in apache#16533 added CursorHolders to the processor-level Closer.
This is problematic when running on an input channel: it means we started
keeping around all CursorHolders for all frames we process and closing them
when the channel is complete, rather than closing them as we go along.

This patch restores the prior behavior, where resources are closed as we go.
@gianm gianm added the Bug label Sep 25, 2024
@github-actions github-actions bot added Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Sep 25, 2024
@gianm gianm added this to the 31.0.0 milestone Sep 25, 2024
@gianm gianm merged commit 2e531bb into apache:master Sep 25, 2024
56 checks passed
@gianm gianm deleted the fix-scanfp-closer-leak branch September 25, 2024 22:51
kfaraz pushed a commit to kfaraz/druid that referenced this pull request Oct 4, 2024
…17152)

* ScanQueryFrameProcessor: Close CursorHolders as we go along.

The change in apache#16533 added CursorHolders to the processor-level Closer.
This is problematic when running on an input channel: it means we started
keeping around all CursorHolders for all frames we process and closing them
when the channel is complete, rather than closing them as we go along.

This patch restores the prior behavior, where resources are closed as we go.

* Fix other call sites.

* Fix reference.

* Improvements.
kfaraz added a commit that referenced this pull request Oct 4, 2024
…g. (#17152) (#17168) (#17245)

* ScanQueryFrameProcessor: Close CursorHolders as we go along. (#17152)
* fix issue with ScanQueryFrameProcessor cursor build not adjusting intervals (#17168)
---------
Co-authored-by: Gian Merlino <[email protected]>
Co-authored-by: Clint Wylie <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants