Skip to content

Commit 1bc018d

Browse files
Adjust ForkJoinPool prefix in HdfsClientThreadLeakFilter (elastic#127534) (elastic#127684)
Adds the ForkJoinPool.commonPool-worker- prefix to the Thread getName().startsWith() checks in HdfsClientThreadLeakFilter. This resolves the "There are still zombie threads that couldn't be terminated" errors in the Hdfs IT tests. (cherry picked from commit 4408e38)
1 parent 476a31d commit 1bc018d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/fixtures/hdfs-fixture/src/main/java/org/elasticsearch/test/fixtures/hdfs/HdfsClientThreadLeakFilter.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ public boolean reject(Thread t) {
3535
|| t.getName().startsWith("SSL Certificates Store Monitor") // hadoop 3 brings that in
3636
|| t.getName().startsWith("GcTimeMonitor") // hadoop 3
3737
|| t.getName().startsWith("Command processor") // hadoop 3
38-
|| t.getName().startsWith("ForkJoinPool-"); // hadoop 3
38+
|| t.getName().startsWith("ForkJoinPool-") // hadoop 3
39+
|| t.getName().startsWith("ForkJoinPool.commonPool-worker-"); // hadoop 3
3940
}
4041
}

0 commit comments

Comments
 (0)