Skip to content

ScanQueryFrameProcessor: Close CursorHolders as we go along.#17152

Merged
gianm merged 4 commits intoapache:masterfrom
gianm:fix-scanfp-closer-leak
Sep 25, 2024
Merged

ScanQueryFrameProcessor: Close CursorHolders as we go along.#17152
gianm merged 4 commits intoapache:masterfrom
gianm:fix-scanfp-closer-leak

Conversation

@gianm
Copy link
Copy Markdown
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
@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 <gianmerlino@gmail.com>
Co-authored-by: Clint Wylie <cwylie@apache.org>
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