Repository navigation
MINOR: Add timeout to combinedFuture.get() in TestVectorIoBridge - #4005
Merged
Fokko merged 1 commit intoNov 30, 2026
Merged
Conversation
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
force-pushed
the
minor-vectorio-bridge-test-timeout
branch
from
November 30, 2026 17:32
eaa3e43 to
afb48b5
Compare
Fokko
self-requested a review
November 30, 2026 17:42
Fokko
approved these changes
Nov 30, 2026
Fokko
left a comment
Contributor
There was a problem hiding this comment.
Thanks @pratham76, LGTM! Nice catch on the hanging test fork 🚀
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rationale for this change
TestVectorIoBridge#testVectoredReadMultipleRangeswaits oncombinedFuture.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 hitsNoSuchMethodError: ByteBuffer.flip()inRawLocalFileSystem.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 withcombinedFuture.get(60, TimeUnit.SECONDS), so the test fails fast with aTimeoutExceptioninstead 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:checkpasses forparquet-hadoop; I relied on CI for the full build.Are there any user-facing changes?
No.