Skip to content

Commit acd7533

Browse files
committed
fix client smoke test case
1 parent 06746c7 commit acd7533

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

qa/smoke-test-client/src/test/java/org/elasticsearch/smoketest/ESSmokeClientTestCase.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
package org.elasticsearch.smoketest;
2121

22+
import com.carrotsearch.randomizedtesting.ThreadFilter;
23+
import com.carrotsearch.randomizedtesting.annotations.ThreadLeakFilters;
2224
import org.apache.logging.log4j.Logger;
2325
import org.apache.lucene.util.LuceneTestCase;
2426
import org.elasticsearch.action.admin.cluster.health.ClusterHealthResponse;
@@ -62,8 +64,18 @@
6264
* then run JUnit. If you changed the default port, set "-Dtests.cluster=localhost:PORT" when running your test.
6365
*/
6466
@LuceneTestCase.SuppressSysoutChecks(bugUrl = "we log a lot on purpose")
67+
@ThreadLeakFilters(filters = {ESSmokeClientTestCase.ObjectCleanerThreadThreadFilter.class})
6568
public abstract class ESSmokeClientTestCase extends LuceneTestCase {
6669

70+
public static class ObjectCleanerThreadThreadFilter implements ThreadFilter {
71+
72+
@Override
73+
public boolean reject(final Thread t) {
74+
// TODO: replace with constant from Netty when https://github.com/netty/netty/pull/8014 is integrated
75+
return "ObjectCleanerThread".equals(t.getName());
76+
}
77+
}
78+
6779
/**
6880
* Key used to eventually switch to using an external cluster and provide its transport addresses
6981
*/

0 commit comments

Comments
 (0)