Use smart client in busy waiting loop
This test fails since we use random transport clients. Let's see if it stabelizes with a smart client in the loop and debug further if it helps.
This commit is contained in:
parent
5f1efba28c
commit
529b9c8b39
|
@ -92,7 +92,7 @@ public class QuorumLocalGatewayTests extends AbstractIntegrationTest {
|
|||
assertThat(awaitBusy(new Predicate<Object>() {
|
||||
@Override
|
||||
public boolean apply(Object input) {
|
||||
ClusterStateResponse clusterStateResponse = client().admin().cluster().prepareState().setMasterNodeTimeout("500ms").get();
|
||||
ClusterStateResponse clusterStateResponse = cluster().smartClient().admin().cluster().prepareState().setMasterNodeTimeout("500ms").get();
|
||||
return !clusterStateResponse.getState().routingTable().index("test").allPrimaryShardsActive();
|
||||
}
|
||||
}, 30, TimeUnit.SECONDS), equalTo(true));
|
||||
|
|
Loading…
Reference in New Issue