lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joel Bernstein (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-11392) StreamExpressionTest.testParallelExecutorStream fails too frequently
Date Sat, 23 Sep 2017 16:20:02 GMT

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

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

[~romseygeek], I'm wondering if you see anything I might be doing wrong with the code above?

I'm creating the workQueue collection as follows:
{code}
CollectionAdminRequest.createCollection("workQueue", "conf", 2, 1).process(cluster.getSolrClient());
    AbstractDistribZkTestBase.waitForRecoveriesToFinish("workQueue", cluster.getSolrClient().getZkStateReader(),
        false, true, TIMEOUT);
{code}

But frequently on jenkins this collection seems to not be available when I add documents?
Is there another approach I should be using?


> 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-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message