Skip to content

[full-text] Fix native reader cleanup on failures - #8950

Merged
JingsongLi merged 1 commit into
apache:masterfrom
QuakeWang:fulltext-reader-cleanup
Jul 31, 2026
Merged

[full-text] Fix native reader cleanup on failures#8950
JingsongLi merged 1 commit into
apache:masterfrom
QuakeWang:fulltext-reader-cleanup

Conversation

@QuakeWang

Copy link
Copy Markdown
Member

Purpose

NativeFullTextGlobalIndexReader could mask the original initialization failure when input cleanup also failed. Its close path also stopped after the native reader failed to close, leaving the input stream open.

Preserve the primary failure, attach cleanup failures as suppressed exceptions, and always attempt to close both resources. Add focused lifecycle regression tests.

Tests

  • mvn -B -ntp verify -pl paimon-full-text -Dcheckstyle.skip=true -Dspotless.check.skip=true

Preserve the primary failure when cleanup also fails, and always attempt to close both the native reader and its input stream. Add focused lifecycle tests for unchecked and native linkage failures.

Signed-off-by: QuakeWang <wangfuzheng0814@foxmail.com>
@JingsongLi

Copy link
Copy Markdown
Contributor

+1

@JingsongLi
JingsongLi merged commit 93bcff4 into apache:master Jul 31, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants