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:
Boaz Leskes 2014-10-15 18:05:52 +02:00
parent c9d66bf486
commit f885abbedb
1 changed files with 2 additions and 0 deletions

View File

@ -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"));