From afb48b5205bbb9acad9263d01995053fe27927da Mon Sep 17 00:00:00 2001 From: pratham76 Date: Mon, 30 Nov 2026 22:59:07 +0530 Subject: [PATCH] MINOR: Add timeout to combinedFuture.get() in TestVectorIoBridge 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. --- .../parquet/hadoop/util/wrapped/io/TestVectorIoBridge.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parquet-hadoop/src/test/java/org/apache/parquet/hadoop/util/wrapped/io/TestVectorIoBridge.java b/parquet-hadoop/src/test/java/org/apache/parquet/hadoop/util/wrapped/io/TestVectorIoBridge.java index 4840db73d2..b8ab834470 100644 --- a/parquet-hadoop/src/test/java/org/apache/parquet/hadoop/util/wrapped/io/TestVectorIoBridge.java +++ b/parquet-hadoop/src/test/java/org/apache/parquet/hadoop/util/wrapped/io/TestVectorIoBridge.java @@ -201,7 +201,8 @@ public void testVectoredReadMultipleRanges() throws Exception { completableFutures[i++] = res.getDataReadFuture(); } CompletableFuture combinedFuture = CompletableFuture.allOf(completableFutures); - combinedFuture.get(); + // Fail fast instead of hanging the test JVM if the filesystem's read handler dies. + combinedFuture.get(60, TimeUnit.SECONDS); validateVectoredReadResult(fileRanges, DATASET); }