From 8f1fe51f34191f88915ad90a8bbd9ac155449552 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Mon, 1 May 2017 14:50:13 -0400 Subject: [PATCH] Test: more logging for refresh listeners many threads test This test fails from time to time but doesn't give enough information for me to figure out what caused the assertion to fail. Relates to #24418 --- .../org/elasticsearch/index/shard/RefreshListenersTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/test/java/org/elasticsearch/index/shard/RefreshListenersTests.java b/core/src/test/java/org/elasticsearch/index/shard/RefreshListenersTests.java index aa3b9b1ee85..5ad430ca59e 100644 --- a/core/src/test/java/org/elasticsearch/index/shard/RefreshListenersTests.java +++ b/core/src/test/java/org/elasticsearch/index/shard/RefreshListenersTests.java @@ -56,6 +56,7 @@ import org.elasticsearch.index.translog.TranslogConfig; import org.elasticsearch.test.DummyShardLock; import org.elasticsearch.test.ESTestCase; import org.elasticsearch.test.IndexSettingsModule; +import org.elasticsearch.test.junit.annotations.TestLogging; import org.elasticsearch.threadpool.TestThreadPool; import org.elasticsearch.threadpool.ThreadPool; import org.elasticsearch.threadpool.ThreadPool.Cancellable; @@ -272,6 +273,7 @@ public class RefreshListenersTests extends ESTestCase { * Uses a bunch of threads to index, wait for refresh, and non-realtime get documents to validate that they are visible after waiting * regardless of what crazy sequence of events causes the refresh listener to fire. */ + @TestLogging("_root:debug,org.elasticsearch.index.engine.Engine.DW:trace") public void testLotsOfThreads() throws Exception { int threadCount = between(3, 10); maxListeners = between(1, threadCount * 2);