Skip to content

Fix two issues where CursorHolders were not closed on failure of asCursor().#17915

Merged
cryptoe merged 2 commits intoapache:masterfrom
gianm:fix-cursorholder-error-handling
Apr 15, 2025
Merged

Fix two issues where CursorHolders were not closed on failure of asCursor().#17915
cryptoe merged 2 commits intoapache:masterfrom
gianm:fix-cursorholder-error-handling

Conversation

@gianm
Copy link
Contributor

@gianm gianm commented Apr 15, 2025

One in TopNQueryEngine (native) and one in ScanQueryFrameProcessor (MSQ).

This is especially important because asCursor() itself can fail in ways that leave the CursorHolder with resources that must be closed.

…rsor().

One in TopNQueryEngine (native) and one in ScanQueryFrameProcessor (MSQ).

This is especially important because asCursor() itself can fail in ways that
leave the CursorHolder with resources that must be closed.
@gianm gianm added the Bug label Apr 15, 2025
@github-actions github-actions bot added Area - Batch Ingestion Area - MSQ For multi stage queries - https://github.com/apache/druid/issues/12262 labels Apr 15, 2025
@cryptoe cryptoe merged commit 0e81a19 into apache:master Apr 15, 2025
1 check passed
@gianm gianm deleted the fix-cursorholder-error-handling branch April 15, 2025 11:58
kgyrtkirk pushed a commit to kgyrtkirk/druid that referenced this pull request Apr 15, 2025
…rsor(). (apache#17915)

* Fix two issues where CursorHolders were not closed on failure of asCursor().

One in TopNQueryEngine (native) and one in ScanQueryFrameProcessor (MSQ).

This is especially important because asCursor() itself can fail in ways that
leave the CursorHolder with resources that must be closed.

* Fix style.

(cherry picked from commit 0e81a19)
kgyrtkirk added a commit that referenced this pull request Apr 16, 2025
…rsor(). (#17915) (#17925)

* Fix two issues where CursorHolders were not closed on failure of asCursor().

One in TopNQueryEngine (native) and one in ScanQueryFrameProcessor (MSQ).

This is especially important because asCursor() itself can fail in ways that
leave the CursorHolder with resources that must be closed.

* Fix style.

(cherry picked from commit 0e81a19)

Co-authored-by: Gian Merlino <gianmerlino@gmail.com>
@capistrant capistrant added this to the 34.0.0 milestone Jul 22, 2025
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.

3 participants