From c0cc5946b5372a68231f22864421309172355956 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Tue, 25 Feb 2014 14:08:39 +0000 Subject: [PATCH] SOLR-5069 fixing test failure git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1571702 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/solr/cloud/CollectionsAPIDistributedZkTest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java index 22867918e64..a4a2bb5232e 100644 --- a/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/CollectionsAPIDistributedZkTest.java @@ -1189,8 +1189,6 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa CloudSolrServer client = createCloudClient(null); try { createCollection(collectionName, client,2,2); - - waitForRecoveriesToFinish(collectionName, false); String newReplicaName = Assign.assignNode(collectionName , client.getZkStateReader().getClusterState() ); ArrayList nodeList = new ArrayList(client.getZkStateReader().getClusterState().getLiveNodes()); Collections.shuffle(nodeList); @@ -1270,7 +1268,8 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa MAX_SHARDS_PER_NODE, maxShardsPerNode, NUM_SLICES, numShards); Map> collectionInfos = new HashMap>(); - createCollection(collectionInfos, COLL_NAME, props, client); + createCollection(collectionInfos, COLL_NAME, props, client,"conf1"); + waitForRecoveriesToFinish(COLL_NAME, false); } @Override