mirror of https://github.com/apache/lucene.git
SOLR-12801: Harden BasicDistributedZk2Test.
This commit is contained in:
parent
40502b9ba8
commit
7605427481
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue