diff --git a/solr/core/src/test/org/apache/solr/cloud/RecoveryZkTest.java b/solr/core/src/test/org/apache/solr/cloud/RecoveryZkTest.java index 25d6eed0907..310a0a4cf60 100644 --- a/solr/core/src/test/org/apache/solr/cloud/RecoveryZkTest.java +++ b/solr/core/src/test/org/apache/solr/cloud/RecoveryZkTest.java @@ -82,6 +82,9 @@ public class RecoveryZkTest extends AbstractFullDistribZkTestBase { indexThread.join(); indexThread2.join(); + Thread.sleep(500); + waitForRecoveriesToFinish(DEFAULT_COLLECTION, zkStateReader, false, true); + commit(); // test that leader and replica have same doc count