[TEST] Add search trace logging for debugging
This commit is contained in:
parent
043f18d5ff
commit
a7b2bdca4c
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue