m1a2st commented on code in PR #22520:
URL: https://github.com/apache/kafka/pull/22520#discussion_r3392869194


##########
test-common/test-common-runtime/src/main/java/org/apache/kafka/common/test/junit/ClusterTestExtensions.java:
##########
@@ -108,10 +108,14 @@ public class ClusterTestExtensions implements 
TestTemplateInvocationContextProvi
     private static final String ATTACH_LISTENER_THREAD_PREFIX = "Attach 
Listener";
     private static final String PROCESS_REAPER_THREAD_PREFIX = "process 
reaper";
     private static final String RMI_THREAD_PREFIX = "RMI";
+    private static final String MOCK_WEB_SERVER_THREAD_PREFIX = 
"MockWebServer";

Review Comment:
   MockOAuth2Server library internally uses OkHttp's MockWebServer, which 
spawns threads with the "MockWebServer" prefix. These threads may not be fully 
terminated by the time the thread leak check runs after each test, causing 
false-positive thread leak detection failures.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to