File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
qa/smoke-test-client/src/test/java/org/elasticsearch/smoketest Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1919
2020package org .elasticsearch .smoketest ;
2121
22+ import com .carrotsearch .randomizedtesting .ThreadFilter ;
23+ import com .carrotsearch .randomizedtesting .annotations .ThreadLeakFilters ;
2224import org .apache .logging .log4j .Logger ;
2325import org .apache .lucene .util .LuceneTestCase ;
2426import org .elasticsearch .action .admin .cluster .health .ClusterHealthResponse ;
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 })
6568public 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 */
You can’t perform that action at this time.
0 commit comments