|
@@ -25,6 +25,7 @@ import org.elasticsearch.action.index.IndexRequestBuilder;
|
|
|
import org.elasticsearch.action.search.SearchPhaseExecutionException;
|
|
|
import org.elasticsearch.action.search.SearchResponse;
|
|
|
import org.elasticsearch.client.Client;
|
|
|
+import org.elasticsearch.common.Priority;
|
|
|
import org.elasticsearch.search.SearchHits;
|
|
|
import org.elasticsearch.test.ElasticsearchIntegrationTest;
|
|
|
import org.hamcrest.Matchers;
|
|
@@ -130,12 +131,12 @@ public class SearchWhileRelocatingTests extends ElasticsearchIntegrationTest {
|
|
|
}
|
|
|
allowNodes("test", between(1, 3));
|
|
|
client().admin().cluster().prepareReroute().get();
|
|
|
- // this might time out on some machines if they are really busy and you hit lots of throttling
|
|
|
- ClusterHealthResponse resp = client().admin().cluster().prepareHealth().setWaitForRelocatingShards(0).setTimeout("5m").get();
|
|
|
stop.set(true);
|
|
|
for (int j = 0; j < threads.length; j++) {
|
|
|
threads[j].join();
|
|
|
}
|
|
|
+ // this might time out on some machines if they are really busy and you hit lots of throttling
|
|
|
+ ClusterHealthResponse resp = client().admin().cluster().prepareHealth().setWaitForRelocatingShards(0).setWaitForEvents(Priority.LANGUID).setTimeout("5m").get();
|
|
|
assertNoTimeout(resp);
|
|
|
if (!thrownExceptions.isEmpty() || !nonCriticalExceptions.isEmpty()) {
|
|
|
Client client = client();
|