Test: testRelocationWithBusyClusterUpdateThread - CountDownLatch.countDown should be await

This commit is contained in:
Boaz Leskes 2015-02-06 14:31:04 +01:00
parent 45ecb49a09
commit 487ef80c35
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ public class RelocationTests extends ElasticsearchIntegrationTest {
logger.info("--> waiting for node1 to process replica existence"); logger.info("--> waiting for node1 to process replica existence");
allReplicasAssigned.await(); allReplicasAssigned.await();
logger.info("--> waiting for recovery to fail"); logger.info("--> waiting for recovery to fail");
unassignedShardsAfterReplicasAssigned.countDown(); unassignedShardsAfterReplicasAssigned.await();
} finally { } finally {
logger.info("--> releasing cluster state update thread"); logger.info("--> releasing cluster state update thread");
releaseClusterState.countDown(); releaseClusterState.countDown();