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:
Shalin Shekhar Mangar 2014-07-16 05:02:36 +00:00
parent 899d57f418
commit ce7e042052
1 changed files with 1 additions and 1 deletions

View File

@ -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<>();