This is an automated email from the ASF dual-hosted git repository. lhotari pushed a commit to branch branch-3.3 in repository https://gitbox.apache.org/repos/asf/pulsar.git
commit 89d0c850285abb9ad6ebab8a682196ce4bb5bfc2 Author: Lari Hotari <lhot...@users.noreply.github.com> AuthorDate: Fri May 9 07:38:00 2025 +0300 [improve][build] Improve thread leak detector by ignoring "Attach Listener" thread (#24277) (cherry picked from commit b58e99b003262dcb13c207e413570facb3dba459) --- .../main/java/org/apache/pulsar/tests/ThreadLeakDetectorListener.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildtools/src/main/java/org/apache/pulsar/tests/ThreadLeakDetectorListener.java b/buildtools/src/main/java/org/apache/pulsar/tests/ThreadLeakDetectorListener.java index c9ce671132c..89a0e0b34f0 100644 --- a/buildtools/src/main/java/org/apache/pulsar/tests/ThreadLeakDetectorListener.java +++ b/buildtools/src/main/java/org/apache/pulsar/tests/ThreadLeakDetectorListener.java @@ -204,6 +204,10 @@ public class ThreadLeakDetectorListener extends BetweenTestClassesListenerAdapte if (threadName.equals("process reaper")) { return true; } + // skip JVM internal thread related to agent attach + if (threadName.equals("Attach Listener")) { + return true; + } // skip JVM internal thread used for CompletableFuture.delayedExecutor if (threadName.equals("CompletableFutureDelayScheduler")) { return true;