testDanglingIndicesConflictWithAlias - wait for node left to be processed
O.w. delete index command may time out waiting for the node that left to confirm deletion
This commit is contained in:
parent
c9d66bf486
commit
f885abbedb
|
@ -293,6 +293,8 @@ public class LocalGatewayIndexStateTests extends ElasticsearchIntegrationTest {
|
|||
|
||||
internalCluster().stopRandomNonMasterNode();
|
||||
|
||||
// wait for master to processed node left (so delete won't timeout waiting for it)
|
||||
assertFalse(client().admin().cluster().prepareHealth().setWaitForNodes("1").get().isTimedOut());
|
||||
|
||||
logger.info("--> deleting index");
|
||||
assertAcked(client().admin().indices().prepareDelete("test"));
|
||||
|
|
Loading…
Reference in New Issue