ARTEMIS-1719 fix ThreadLeakCheckRule after Netty upgrade

This commit is contained in:
Justin Bertram 2018-03-05 21:11:51 -06:00
parent a088abf9d4
commit 44305694f7
1 changed files with 3 additions and 0 deletions

View File

@ -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")) {