From a7b2bdca4c8779e1fca6d89db8967233e42136ec Mon Sep 17 00:00:00 2001 From: Simon Willnauer Date: Wed, 19 Nov 2014 23:13:33 +0100 Subject: [PATCH] [TEST] Add search trace logging for debugging --- .../search/basic/SearchWhileRelocatingTests.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/java/org/elasticsearch/search/basic/SearchWhileRelocatingTests.java b/src/test/java/org/elasticsearch/search/basic/SearchWhileRelocatingTests.java index dddd3efa5c3..45df236d11f 100644 --- a/src/test/java/org/elasticsearch/search/basic/SearchWhileRelocatingTests.java +++ b/src/test/java/org/elasticsearch/search/basic/SearchWhileRelocatingTests.java @@ -27,6 +27,7 @@ import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.client.Client; import org.elasticsearch.search.SearchHits; import org.elasticsearch.test.ElasticsearchIntegrationTest; +import org.elasticsearch.test.junit.annotations.TestLogging; import org.hamcrest.Matchers; import org.junit.Test; @@ -51,17 +52,20 @@ public class SearchWhileRelocatingTests extends ElasticsearchIntegrationTest { // we just make sure if we get a partial result without a failure that the postsearch is ok! @Test @Nightly + @TestLogging("action.search:TRACE") public void testSearchAndRelocateConcurrently0Replicas() throws Exception { testSearchAndRelocateConcurrently(0); } @Test @Nightly + @TestLogging("action.search:TRACE") public void testSearchAndRelocateConcurrently1Replicas() throws Exception { testSearchAndRelocateConcurrently(1); } @Test + @TestLogging("action.search:TRACE") public void testSearchAndRelocateConcurrentlyRanodmReplicas() throws Exception { testSearchAndRelocateConcurrently(randomIntBetween(0, 1)); }