[TEST] Reenable threadleak filters with 5 sec. lingering

This commit is contained in:
Simon Willnauer 2014-09-25 09:52:01 +02:00
parent a236b80392
commit 4bd37d7ee6
2 changed files with 2 additions and 1 deletions

View File

@ -67,6 +67,7 @@ import static org.elasticsearch.test.hamcrest.ElasticsearchAssertions.assertAllS
*/ */
@ThreadLeakFilters(defaultFilters = true, filters = {ElasticsearchThreadFilter.class}) @ThreadLeakFilters(defaultFilters = true, filters = {ElasticsearchThreadFilter.class})
@ThreadLeakScope(Scope.SUITE) @ThreadLeakScope(Scope.SUITE)
@ThreadLeakLingering(linger = 5000) // 5 sec lingering
@TimeoutSuite(millis = 20 * TimeUnits.MINUTE) // timeout the suite after 20min and fail the test. @TimeoutSuite(millis = 20 * TimeUnits.MINUTE) // timeout the suite after 20min and fail the test.
@Listeners(LoggingListener.class) @Listeners(LoggingListener.class)
public abstract class ElasticsearchTestCase extends AbstractRandomizedTest { public abstract class ElasticsearchTestCase extends AbstractRandomizedTest {

View File

@ -52,6 +52,6 @@ public final class ElasticsearchThreadFilter implements ThreadFilter {
|| threadName.contains("Keep-Alive-Timer")) { || threadName.contains("Keep-Alive-Timer")) {
return true; return true;
} }
return nodePrefix.matcher(t.getName()).find() || true; // TODO disabled for now return nodePrefix.matcher(t.getName()).find();
} }
} }