mirror of https://github.com/apache/lucene.git
SOLR-6137: Fix off-by-one error in array access
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1610909 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
899d57f418
commit
ce7e042052
|
@ -123,7 +123,7 @@ public class TestCloudSchemaless extends AbstractFullDistribZkTestBase {
|
|||
int trials = 50;
|
||||
// generate enough docs so that we can expect at least a doc per slice
|
||||
int numDocsPerTrial = (int)(slices * (Math.log(slices) + 1));
|
||||
SolrServer ss = clients.get(random().nextInt(clients.size() + 1));
|
||||
SolrServer ss = clients.get(random().nextInt(clients.size()));
|
||||
int docNumber = 0;
|
||||
for (int i = 0; i < trials; ++i) {
|
||||
List<SolrInputDocument> docs = new ArrayList<>();
|
||||
|
|
Loading…
Reference in New Issue