SOLR-12801: Harden BasicDistributedZk2Test.

This commit is contained in:
markrmiller 2018-12-10 21:25:06 -06:00
parent 40502b9ba8
commit 7605427481
1 changed files with 10 additions and 2 deletions

View File

@ -285,8 +285,16 @@ public class BasicDistributedZk2Test extends AbstractFullDistribZkTestBase {
long numFound1 = cloudClient.query(new SolrQuery("*:*")).getResults().getNumFound();
cloudClient.getZkStateReader().getLeaderRetry(DEFAULT_COLLECTION, SHARD1, 60000);
try {
index_specific(shardToJetty.get(SHARD1).get(1).client.solrClient, id, 1000, i1, 108, t1,
"specific doc!");
} catch (Exception e) {
// wait and try again
Thread.sleep(4000);
index_specific(shardToJetty.get(SHARD1).get(1).client.solrClient, id, 1000, i1, 108, t1,
"specific doc!");
}
commit();