You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Muir (JIRA)" <ji...@apache.org> on 2010/10/17 15:33:22 UTC

[jira] Updated: (SOLR-2162) TestLBHttpSolrServer.testSimple test failure

     [ https://issues.apache.org/jira/browse/SOLR-2162?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Muir updated SOLR-2162:
------------------------------

    Attachment: SOLR-2162_test.patch

I think this might be a real bug in the retry handling of the CommonsHttpSolrServer:
I suspect a reuse bug where in the finally block in the loop, releaseConnection() is called
but the same option is later reused (a new Method is not created)

attached is a patch to reproduce the failure.
The test fails most of the time, but to be sure run like this:

ant test-core -Dtestcase=TestLBHttpSolrServer -Dtestmethod=testReliability -Dtests.iter=10

it also creates other interesting wonderful exceptions such as:
{noformat}
    [junit] Caused by: org.apache.solr.client.solrj.SolrServerException: org.apache.commons.httpclient.ProtocolException
: Unable to parse header: vr et(..2
{noformat}


> TestLBHttpSolrServer.testSimple test failure
> --------------------------------------------
>
>                 Key: SOLR-2162
>                 URL: https://issues.apache.org/jira/browse/SOLR-2162
>             Project: Solr
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 3.1, 4.0
>         Environment: Hudson
>            Reporter: Robert Muir
>             Fix For: 3.1, 4.0
>
>         Attachments: SOLR-2162_test.patch
>
>
> TestLBHttpSolrServer failed, with this error:
> java.lang.IllegalStateException: Connection is not open
> Here is the stacktrace:
> {noformat}
>     [junit] Testsuite: org.apache.solr.client.solrj.TestLBHttpSolrServer
>     [junit] Testcase: testSimple(org.apache.solr.client.solrj.TestLBHttpSolrServer):	Caused an ERROR
>     [junit] java.lang.IllegalStateException: Connection is not open
>     [junit] org.apache.solr.client.solrj.SolrServerException: java.lang.IllegalStateException: Connection is not open
>     [junit] 	at org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:409)
>     [junit] 	at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
>     [junit] 	at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:119)
>     [junit] 	at org.apache.solr.client.solrj.TestLBHttpSolrServer.testSimple(TestLBHttpSolrServer.java:120)
>     [junit] 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:795)
>     [junit] 	at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:768)
>     [junit] Caused by: java.lang.IllegalStateException: Connection is not open
>     [junit] 	at org.apache.commons.httpclient.HttpConnection.assertOpen(HttpConnection.java:1277)
>     [junit] 	at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
>     [junit] 	at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1973)
>     [junit] 	at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1735)
>     [junit] 	at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:1098)
>     [junit] 	at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:398)
>     [junit] 	at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
>     [junit] 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
>     [junit] 	at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
>     [junit] 	at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:427)
>     [junit] 	at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:244)
>     [junit] 	at org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:395)
>     [junit] 
>     [junit] 
>     [junit] Tests run: 2, Failures: 0, Errors: 1, Time elapsed: 10.319 sec
>     [junit] 
>     [junit] ------------- Standard Output ---------------
>     [junit] NOTE: reproduce with: ant test -Dtestcase=TestLBHttpSolrServer -Dtestmethod=testSimple -Dtests.seed=-4677869093300417770:-570157895683071678
>     [junit] NOTE: test params are: codec=SimpleText, locale=hr_HR, timezone=Asia/Kathmandu
>     [junit] ------------- ---------------- ---------------
>     [junit] TEST org.apache.solr.client.solrj.TestLBHttpSolrServer FAILED
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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