[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.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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue