[ https://issues.apache.org/jira/browse/KAFKA-16219?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17855427#comment-17855427 ]
Gaurav Narula commented on KAFKA-16219: --------------------------------------- Thread dump revealed that the test runner was blocked trying to read from a socket, while attempting to close the socket [[0]|https://issues.apache.org/jira/secure/attachment/13066427/timeout.log]. It turns out this is due to a bug in JDK which is very similar to JDK-8274524, but it affects the else branch of SSLSocketImpl::bruteForceCloseInput [[1]|https://github.com/openjdk/jdk/blob/890adb6410dab4606a4f26a942aed02fb2f55387/src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java#L808] which wasn't fixed in JDK-8274524. Since the blocking happens in a native call, the test runner's timeouts have no effect as the blocked test runner thread doesn't seem to respond to interrupts. > Tsl13SelectorTest::testExpireClosedConnectionWithPendingReceives hangs > infinitely > --------------------------------------------------------------------------------- > > Key: KAFKA-16219 > URL: https://issues.apache.org/jira/browse/KAFKA-16219 > Project: Kafka > Issue Type: Test > Reporter: Gaurav Narula > Assignee: Gaurav Narula > Priority: Major > Attachments: timeout.log > > > I noticed the test suite hangs indefinitely sometimes. On setting a timeout > on the {{unitTest}} and {{integrationTest}} tasks, I observed that the > {{:clientsTest:unitTest}} task fails with > {{Tsl13SelectorTest::testExpireClosedConnectionWithPendingReceives}} target > marked as skip. > On further investigation, it seems like the the test is blocked trying to > read from the socket. Please refer to the thread dump attached. -- This message was sent by Atlassian Jira (v8.20.10#820010)