From 487ef80c35ff609ecbc0586a9024930a1f49db41 Mon Sep 17 00:00:00 2001 From: Boaz Leskes Date: Fri, 6 Feb 2015 14:31:04 +0100 Subject: [PATCH] Test: testRelocationWithBusyClusterUpdateThread - CountDownLatch.countDown should be await --- src/test/java/org/elasticsearch/recovery/RelocationTests.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/java/org/elasticsearch/recovery/RelocationTests.java b/src/test/java/org/elasticsearch/recovery/RelocationTests.java index 8db53a6b221..0684856ace8 100644 --- a/src/test/java/org/elasticsearch/recovery/RelocationTests.java +++ b/src/test/java/org/elasticsearch/recovery/RelocationTests.java @@ -521,7 +521,7 @@ public class RelocationTests extends ElasticsearchIntegrationTest { logger.info("--> waiting for node1 to process replica existence"); allReplicasAssigned.await(); logger.info("--> waiting for recovery to fail"); - unassignedShardsAfterReplicasAssigned.countDown(); + unassignedShardsAfterReplicasAssigned.await(); } finally { logger.info("--> releasing cluster state update thread"); releaseClusterState.countDown();