You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Steve Rowe <sa...@gmail.com> on 2014/07/16 15:24:05 UTC
Re: svn commit: r1610909 - /lucene/dev/trunk/solr/core/src/test/org/apache/solr/schema/TestCloudSchemaless.java
Thanks Shalin! - Steve
On Jul 16, 2014, at 1:02 AM, shalin@apache.org wrote:
> Author: shalin
> Date: Wed Jul 16 05:02:36 2014
> New Revision: 1610909
>
> URL: http://svn.apache.org/r1610909
> Log:
> SOLR-6137: Fix off-by-one error in array access
>
> Modified:
> lucene/dev/trunk/solr/core/src/test/org/apache/solr/schema/TestCloudSchemaless.java
>
> Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/schema/TestCloudSchemaless.java
> URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/schema/TestCloudSchemaless.java?rev=1610909&r1=1610908&r2=1610909&view=diff
> ==============================================================================
> --- lucene/dev/trunk/solr/core/src/test/org/apache/solr/schema/TestCloudSchemaless.java (original)
> +++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/schema/TestCloudSchemaless.java Wed Jul 16 05:02:36 2014
> @@ -123,7 +123,7 @@ public class TestCloudSchemaless extends
> 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<>();
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org