Skip to content

MINOR: Add timeout to combinedFuture.get() in TestVectorIoBridge - #4005

Merged
Fokko merged 1 commit into
apache:masterfrom
pratham76:minor-vectorio-bridge-test-timeout
Nov 30, 2026
Merged

Fokko merged 1 commit into
apache:masterfrom
pratham76:minor-vectorio-bridge-test-timeout

Conversation

@pratham76

Copy link
Copy Markdown
Contributor

Rationale for this change

TestVectorIoBridge#testVectoredReadMultipleRanges waits on combinedFuture.get() with no timeout. If the filesystem's read handler dies before completing the futures, the test blocks forever and hangs the whole surefire fork instead of failing. For example, Hadoop 3.4.2 on JDK 8 hits NoSuchMethodError: ByteBuffer.flip() in RawLocalFileSystem.

The other vectored-read waits in this class already use a bounded wait (FutureIO.awaitFuture(..., VECTORED_READ_OPERATION_TEST_TIMEOUT_SECONDS, TimeUnit.SECONDS)).

What changes are included in this PR?

combinedFuture.get() is replaced with combinedFuture.get(60, TimeUnit.SECONDS), so the test fails fast with a TimeoutException instead of hanging. This is a test-only change.

Are these changes tested?

It's a test-only change to an existing test. The identical change passes in TestVectorIoBridge (22 tests) on a downstream backport of this class, on JDK 8 with Hadoop 3.3.6 and on JDK 17 with Hadoop 3.4.2. On this branch, spotless:check passes for parquet-hadoop; I relied on CI for the full build.

Are there any user-facing changes?

No.

testVectoredReadMultipleRanges waited on combinedFuture.get() with no
timeout. If the filesystem's read handler dies, the test blocks forever
and hangs the whole surefire fork. Wait at most 60 seconds so it fails
fast instead.
@pratham76
pratham76 force-pushed the minor-vectorio-bridge-test-timeout branch from eaa3e43 to afb48b5 Compare November 30, 2026 17:32
@Fokko
Fokko self-requested a review November 30, 2026 17:42

@Fokko Fokko left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @pratham76, LGTM! Nice catch on the hanging test fork 🚀

@Fokko
Fokko merged commit 90744a3 into apache:master Nov 30, 2026
5 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