mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
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();
|
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");
|
logger.info("--> deleting index");
|
||||||
assertAcked(client().admin().indices().prepareDelete("test"));
|
assertAcked(client().admin().indices().prepareDelete("test"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user