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

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@apache.org
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


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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@apache.org

     [ 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Yonik Seeley commented on SOLR-2162:
------------------------------------

Interesting - it fails for me every time too.

I don't think that LBHttpSolrServer is using CommonsHttpSolrServer in a way that would make it retry though.
And the method.releaseConnection() that doesn't have a corresponding method=null - that's at the end of the method and "method"
is a local variable (was that the place you were talking about - line 486?

> 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Yonik Seeley commented on SOLR-2162:
------------------------------------

If I instantiate HttpClient with a multi-threaded connection manager, this test seems to pass again.
    HttpClient myHttpClient = new HttpClient(new MultiThreadedHttpConnectionManager());


> 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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

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

JIRA jira@apache.org
In reply to this post by JIRA jira@apache.org

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

Yonik Seeley resolved SOLR-2162.
--------------------------------

    Resolution: Fixed

Committed change so that setUp also used a multi-threaded connection manager.
Hopefully that will solve the issue.

> 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: [hidden email]
For additional commands, e-mail: [hidden email]