From f885abbedb4827a051f4e5e2883dbee83cfaa497 Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Wed, 15 Oct 2014 18:05:52 +0200 Subject: [PATCH] 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 --- .../gateway/local/LocalGatewayIndexStateTests.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/org/elasticsearch/gateway/local/LocalGatewayIndexStateTests.java b/src/test/java/org/elasticsearch/gateway/local/LocalGatewayIndexStateTests.java index fb2ca6594db..421ce0cab47 100644 --- a/src/test/java/org/elasticsearch/gateway/local/LocalGatewayIndexStateTests.java +++ b/src/test/java/org/elasticsearch/gateway/local/LocalGatewayIndexStateTests.java @@ -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"));