From 44305694f7a5104497297b02a51caf5535a2e9bd Mon Sep 17 00:00:00 2001 From: Justin Bertram Date: Mon, 5 Mar 2018 21:11:51 -0600 Subject: [PATCH] ARTEMIS-1719 fix ThreadLeakCheckRule after Netty upgrade --- .../org/apache/activemq/artemis/utils/ThreadLeakCheckRule.java | 3 +++ 1 file changed, 3 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 1778c7b89d..14011808ce 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 @@ -257,6 +257,9 @@ public class ThreadLeakCheckRule extends TestWatcher { } else if (threadName.contains("hawtdispatch") || (group != null && group.getName().contains("hawtdispatch"))) { // Static workers used by MQTT client. return true; + } else if (threadName.contains("ObjectCleanerThread")) { + // Required since upgrade to Netty 4.1.22 maybe because https://github.com/netty/netty/commit/739e70398ccb6b11ffa97c6b5f8d55e455a2165e + return true; } else { for (StackTraceElement element : thread.getStackTrace()) { if (element.getClassName().contains("org.jboss.byteman.agent.TransformListener")) {