[ 
https://issues.apache.org/jira/browse/SOLR-11392?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16180755#comment-16180755
 ] 

Joel Bernstein commented on SOLR-11392:
---------------------------------------

The test is failing on jenkins with the following error:

<h2>HTTP ERROR: 404</h2>
<p>Problem accessing /solr/mainCorpus_shard2_replica_n3/update. Reason:
<pre>    Can not find: /solr/mainCorpus_shard2_replica_n3/update</pre></p>


Notice this is looking for the "_n3" replica. What's odd about this is that 
only two replicas where created for this collection. From the test logs:

[junit4]   2> 134364 INFO  
(OverseerStateUpdate-98710583079665671-127.0.0.1:33171_solr-n_0000000000) 
[n:127.0.0.1:33171_solr    ] o.a.s.c.o.SliceMutator createReplica() {
   [junit4]   2>   "operation":"ADDREPLICA",
   [junit4]   2>   "collection":"mainCorpus",
   [junit4]   2>   "shard":"shard1",
   [junit4]   2>   "core":"mainCorpus_shard1_replica_n1",
   [junit4]   2>   "state":"down",
   [junit4]   2>   "base_url":"http://127.0.0.1:44379/solr";,
   [junit4]   2>   "type":"NRT"} 
   [junit4]   2> 134365 INFO  
(OverseerStateUpdate-98710583079665671-127.0.0.1:33171_solr-n_0000000000) 
[n:127.0.0.1:33171_solr    ] o.a.s.c.o.SliceMutator createReplica() {
   [junit4]   2>   "operation":"ADDREPLICA",
   [junit4]   2>   "collection":"mainCorpus",
   [junit4]   2>   "shard":"shard2",
   [junit4]   2>   "core":"mainCorpus_shard2_replica_n2",
   [junit4]   2>   "state":"down",
   [junit4]   2>   "base_url":"http://127.0.0.1:45595/solr";,
   [junit4]   2>   "type":"NRT"} 

So the question is why is the client looking for the third replica?

Another odd thing with this failure is that it doesn't reproduce and I've never 
seen it locally. So this only happens on Jenkins.


> StreamExpressionTest.testParallelExecutorStream fails too frequently
> --------------------------------------------------------------------
>
>                 Key: SOLR-11392
>                 URL: https://issues.apache.org/jira/browse/SOLR-11392
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Joel Bernstein
>
> I've never been able to reproduce the failure but jenkins fails frequently 
> with the following error:
> {code}
> Stack Trace:
> org.apache.solr.client.solrj.impl.CloudSolrClient$RouteException: Error from 
> server at http://127.0.0.1:38180/solr/workQueue_shard2_replica_n3: Expected 
> mime type application/octet-stream but got text/html. <html>
> <head>
> <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
> <title>Error 404 </title>
> </head>
> <body>
> <h2>HTTP ERROR: 404</h2>
> <p>Problem accessing /solr/workQueue_shard2_replica_n3/update. Reason:
> <pre>    Can not find: /solr/workQueue_shard2_replica_n3/update</pre></p>
> <hr /><a href="http://eclipse.org/jetty";>Powered by Jetty:// 
> 9.3.20.v20170531</a><hr/>
> </body>
> </html>
> {code}
> What appears to be happening is that the test framework is having trouble 
> setting up the collection.
> Here is the test code:
> {code}
> @Test
>   public void testParallelExecutorStream() throws Exception {
>     CollectionAdminRequest.createCollection("workQueue", "conf", 2, 
> 1).process(cluster.getSolrClient());
>     AbstractDistribZkTestBase.waitForRecoveriesToFinish("workQueue", 
> cluster.getSolrClient().getZkStateReader(),
>         false, true, TIMEOUT);
>     CollectionAdminRequest.createCollection("mainCorpus", "conf", 2, 
> 1).process(cluster.getSolrClient());
>     AbstractDistribZkTestBase.waitForRecoveriesToFinish("mainCorpus", 
> cluster.getSolrClient().getZkStateReader(),
>         false, true, TIMEOUT);
>     CollectionAdminRequest.createCollection("destination", "conf", 2, 
> 1).process(cluster.getSolrClient());
>     AbstractDistribZkTestBase.waitForRecoveriesToFinish("destination", 
> cluster.getSolrClient().getZkStateReader(),
>         false, true, TIMEOUT);
>     UpdateRequest workRequest = new UpdateRequest();
>     UpdateRequest dataRequest = new UpdateRequest();
>     for (int i = 0; i < 500; i++) {
>       workRequest.add(id, String.valueOf(i), "expr_s", "update(destination, 
> batchSize=50, search(mainCorpus, q=id:"+i+", rows=1, sort=\"id asc\", 
> fl=\"id, body_t, field_i\"))");
>       dataRequest.add(id, String.valueOf(i), "body_t", "hello world "+i, 
> "field_i", Integer.toString(i));
>     }
>     workRequest.commit(cluster.getSolrClient(), "workQueue");
>     dataRequest.commit(cluster.getSolrClient(), "mainCorpus");
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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

Reply via email to