From e0e698bc26244c291917a1e771185f823992e80f Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Wed, 6 Dec 2017 14:46:39 +0100 Subject: [PATCH] testCorruptTranslogTruncation: add logging --- .../org/elasticsearch/index/translog/TruncateTranslogIT.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/src/test/java/org/elasticsearch/index/translog/TruncateTranslogIT.java b/core/src/test/java/org/elasticsearch/index/translog/TruncateTranslogIT.java index d98359cdd06..90fe9e8404b 100644 --- a/core/src/test/java/org/elasticsearch/index/translog/TruncateTranslogIT.java +++ b/core/src/test/java/org/elasticsearch/index/translog/TruncateTranslogIT.java @@ -57,6 +57,7 @@ import org.elasticsearch.plugins.Plugin; import org.elasticsearch.test.ESIntegTestCase; import org.elasticsearch.test.InternalTestCluster; import org.elasticsearch.test.engine.MockEngineSupport; +import org.elasticsearch.test.junit.annotations.TestLogging; import org.elasticsearch.test.transport.MockTransportService; import java.io.IOException; @@ -84,6 +85,7 @@ public class TruncateTranslogIT extends ESIntegTestCase { return Arrays.asList(MockTransportService.TestPlugin.class, MockEngineFactoryPlugin.class); } + @TestLogging("org.elasticsearch.index.engine:TRACE,org.elasticsearch.index.translog:TRACE") public void testCorruptTranslogTruncation() throws Exception { internalCluster().startNodes(2, Settings.EMPTY);