diff --git a/src/test/java/org/elasticsearch/indexing/IndexActionTests.java b/src/test/java/org/elasticsearch/indexing/IndexActionTests.java index c4d9a7a3492..1a42749d0c9 100644 --- a/src/test/java/org/elasticsearch/indexing/IndexActionTests.java +++ b/src/test/java/org/elasticsearch/indexing/IndexActionTests.java @@ -23,6 +23,7 @@ import org.elasticsearch.action.index.IndexRequestBuilder; import org.elasticsearch.action.index.IndexResponse; import org.elasticsearch.index.VersionType; import org.elasticsearch.test.ElasticsearchIntegrationTest; +import org.elasticsearch.test.junit.annotations.TestLogging; import org.junit.Test; import java.util.ArrayList; @@ -47,6 +48,7 @@ public class IndexActionTests extends ElasticsearchIntegrationTest { * while the index is being created. */ @Test + @TestLogging("action.search:TRACE") public void testAutoGenerateIdNoDuplicates() throws Exception { int numberOfIterations = randomIntBetween(10, 50); for (int i = 0; i < numberOfIterations; i++) { @@ -57,6 +59,7 @@ public class IndexActionTests extends ElasticsearchIntegrationTest { builders.add(client().prepareIndex("test", "type").setSource("field", "value")); } indexRandom(true, builders); + logger.info("verifying indexed content"); int numOfChecks = randomIntBetween(5, 10); for (int j = 0; j < numOfChecks; j++) { assertHitCount(client().prepareSearch("test").get(), numOfDocs);