SOLR-5468: Add wait loop to see replicas become active after restoring partitions; to address intermittent Jenkins test failures.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1596234 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy Potter 2014-05-20 13:20:28 +00:00
parent b1035b1a9e
commit b49788abfe
1 changed files with 2 additions and 0 deletions

View File

@ -234,6 +234,8 @@ public class ReplicationFactorTest extends AbstractFullDistribZkTestBase {
getProxyForReplica(replicas.get(0)).reopen();
getProxyForReplica(replicas.get(1)).reopen();
ensureAllReplicasAreActive(testCollectionName, shardId, numShards, replicationFactor, 30);
rf = sendDoc(4, minRf);
assertTrue("Expected rf=3 as partitions to replicas have been healed, but got "+rf, rf == 3);