From 42fe6a8ee2b8fb066b68ce8e5773388b324d8656 Mon Sep 17 00:00:00 2001 From: brusdev Date: Mon, 16 Dec 2019 14:35:44 +0100 Subject: [PATCH] ARTEMIS-2577 Thread leak test failure with IBM JRE Add the thread with name `MemoryMXBean` as expected on IBM JDK. --- .../org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java index d9dafac51c..ec641ea1a7 100644 --- a/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java +++ b/artemis-commons/src/test/java/org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java @@ -248,6 +248,8 @@ public class ThreadLeakCheckRule extends TestWatcher { return true; } else if (javaVendor.contains("IBM") && threadName.equals("MemoryPoolMXBean notification dispatcher")) { return true; + } else if (javaVendor.contains("IBM") && threadName.contains("MemoryMXBean")) { + return true; } else if (threadName.contains("globalEventExecutor")) { return true; } else if (threadName.contains("threadDeathWatcher")) {