You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Mark Miller <ma...@gmail.com> on 2013/11/25 19:07:00 UTC

Re: svn commit: r1545336 - /lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java

So this is interesting - all I did was add a logging param to the request and this started failing:

Error Message

version conflict for 1000 expected=-1 actual=1452695292890578944
Stacktrace

org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: version conflict for 1000 expected=-1 actual=1452695292890578944
	at __randomizedtesting.SeedInfo.seed([74206FB3D9F5EFB8:F5C6E1ABAEAA8F84]:0)
	at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:491)
	at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:197)
	at org.apache.solr.client.solrj.request.AbstractUpdateRequest.process(AbstractUpdateRequest.java:117)
	at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:116)
	at org.apache.solr.client.solrj.SolrServer.add(SolrServer.java:102)
	at org.apache.solr.cloud.AbstractFullDistribZkTestBase.indexDoc(AbstractFullDistribZkTestBase.java:622)
	at org.apache.solr.cloud.BasicDistributedZkTest.doOptimisticLockingAndUpdating(BasicDistributedZkTest.java:665)
	at org.apache.solr.cloud.BasicDistributedZkTest.doTest(BasicDistributedZkTest.java:342)
	at org.apache.solr.BaseDistributedSearchTestCase.testDistribSearch(BaseDistributedSearchTestCase.java:835)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

On Nov 25, 2013, at 11:25 AM, markrmiller@apache.org wrote:

> Author: markrmiller
> Date: Mon Nov 25 16:25:51 2013
> New Revision: 1545336
> 
> URL: http://svn.apache.org/r1545336
> Log:
> tests: mark the control requests in logging output
> 
> Modified:
>    lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java
> 
> Modified: lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java
> URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java?rev=1545336&r1=1545335&r2=1545336&view=diff
> ==============================================================================
> --- lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java (original)
> +++ lucene/dev/trunk/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java Mon Nov 25 16:25:51 2013
> @@ -614,6 +614,11 @@ public abstract class AbstractFullDistri
>   @Override
>   protected void indexDoc(SolrInputDocument doc) throws IOException,
>       SolrServerException {
> +    
> +    UpdateRequest req = new UpdateRequest();
> +    req.add(doc);
> +    req.setParam("CONTROL", "TRUE");
> +    req.process(controlClient);
>     controlClient.add(doc);
> 
>     // if we wanted to randomly pick a client - but sometimes they may be
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org