From 203363856043dc1d2ed099e5f774bab46c1b4f63 Mon Sep 17 00:00:00 2001 From: Noble Paul Date: Thu, 14 Nov 2013 05:51:59 +0000 Subject: [PATCH] SOLR-5437 git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1541830 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/solr/cloud/DeleteReplicaTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/solr/core/src/test/org/apache/solr/cloud/DeleteReplicaTest.java b/solr/core/src/test/org/apache/solr/cloud/DeleteReplicaTest.java index b4e29a8aa25..8e247da601f 100644 --- a/solr/core/src/test/org/apache/solr/cloud/DeleteReplicaTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/DeleteReplicaTest.java @@ -136,8 +136,8 @@ public class DeleteReplicaTest extends AbstractFullDistribZkTestBase { // final Slice shard1 = testcoll.getSlices().iterator().next(); // if(!shard1.getState().equals(Slice.ACTIVE)) fail("shard is not active"); // for (Replica replica : shard1.getReplicas()) if("active".equals(replica.getStr("state"))) replica1 =replica; - if(replica1 == null) fail("no active relicas found"); - + if(replica1 == null) fail("no active replicas found"); + Thread.sleep(2500);//remove this later.not sure if the clusterstate is not propagated and that is why the tests are failing.SOLR-5437 removeAndWaitForReplicaGone(COLL_NAME, client, replica1, shard1.getName()); client.shutdown();