[TEST] Add search trace logging for debugging

This commit is contained in:
Simon Willnauer 2014-11-19 23:13:33 +01:00
parent 043f18d5ff
commit a7b2bdca4c
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,7 @@ import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.client.Client; import org.elasticsearch.client.Client;
import org.elasticsearch.search.SearchHits; import org.elasticsearch.search.SearchHits;
import org.elasticsearch.test.ElasticsearchIntegrationTest; import org.elasticsearch.test.ElasticsearchIntegrationTest;
import org.elasticsearch.test.junit.annotations.TestLogging;
import org.hamcrest.Matchers; import org.hamcrest.Matchers;
import org.junit.Test; 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! // we just make sure if we get a partial result without a failure that the postsearch is ok!
@Test @Test
@Nightly @Nightly
@TestLogging("action.search:TRACE")
public void testSearchAndRelocateConcurrently0Replicas() throws Exception { public void testSearchAndRelocateConcurrently0Replicas() throws Exception {
testSearchAndRelocateConcurrently(0); testSearchAndRelocateConcurrently(0);
} }
@Test @Test
@Nightly @Nightly
@TestLogging("action.search:TRACE")
public void testSearchAndRelocateConcurrently1Replicas() throws Exception { public void testSearchAndRelocateConcurrently1Replicas() throws Exception {
testSearchAndRelocateConcurrently(1); testSearchAndRelocateConcurrently(1);
} }
@Test @Test
@TestLogging("action.search:TRACE")
public void testSearchAndRelocateConcurrentlyRanodmReplicas() throws Exception { public void testSearchAndRelocateConcurrentlyRanodmReplicas() throws Exception {
testSearchAndRelocateConcurrently(randomIntBetween(0, 1)); testSearchAndRelocateConcurrently(randomIntBetween(0, 1));
} }