FAQ
TestLBHttpSolrServer sometimes fails
------------------------------------

Key: SOLR-2720
URL: https://issues.apache.org/jira/browse/SOLR-2720
Project: Solr
Issue Type: Bug
Affects Versions: 4.0
Reporter: Robert Muir


Triggered a random fail with this test on tnrk.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira



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

Search Discussions

  • Robert Muir (JIRA) at Aug 19, 2011 at 2:06 pm
    [ https://issues.apache.org/jira/browse/SOLR-2720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13087725#comment-13087725 ]

    Robert Muir commented on SOLR-2720:
    -----------------------------------

    {noformat}
    [junit] Testsuite: org.apache.solr.client.solrj.TestLBHttpSolrServer
    [junit] Testcase: testReliability(org.apache.solr.client.solrj.TestLBHttpSolrServer): Caused an ERROR
    [junit] No live SolrServers available to handle this request
    [junit] org.apache.solr.client.solrj.SolrServerException: No live SolrServers available to handle this request
    [junit] at org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:442)
    [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.testReliability(TestLBHttpSolrServer.java:176)
    [junit] at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1526)
    [junit] at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1428)
    [junit] Caused by: org.apache.solr.client.solrj.SolrServerException: java.net.SocketTimeoutException: Read timed out
    [junit] at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:482)
    [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] Caused by: java.net.SocketTimeoutException: Read timed out
    [junit] at jrockit.net.SocketNativeIO.readBytesPinned(Native Method)
    [junit] at jrockit.net.SocketNativeIO.socketRead(SocketNativeIO.java:32)
    [junit] at java.net.SocketInputStream.socketRead0(SocketInputStream.java)
    [junit] at java.net.SocketInputStream.read(SocketInputStream.java:129)
    [junit] at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
    [junit] at java.io.BufferedInputStream.read(BufferedInputStream.java:237)
    [junit] at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
    [junit] at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
    [junit] at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
    [junit] at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
    [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:426)
    [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] 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.testReliability(TestLBHttpSolrServer.java:176)
    [junit] at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1526)
    [junit] at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1428)
    [junit]
    [junit]
    [junit] Tests run: 3, Failures: 0, Errors: 1, Time elapsed: 13.537 sec
    [junit]
    [junit] ------------- Standard Error -----------------
    [junit] NOTE: reproduce with: ant test -Dtestcase=TestLBHttpSolrServer -Dtestmethod=testReliability -Dtests.seed=6954804f80726637:5cbc2a8458b1473f:4a2ea5b4bd8b97d5 -Dtests.multiplier=3
    {noformat}
    TestLBHttpSolrServer sometimes fails
    ------------------------------------

    Key: SOLR-2720
    URL: https://issues.apache.org/jira/browse/SOLR-2720
    Project: Solr
    Issue Type: Bug
    Affects Versions: 4.0
    Reporter: Robert Muir

    Triggered a random fail with this test on tnrk.
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • Mark Miller (Commented) (JIRA) at Nov 1, 2011 at 4:57 pm
    [ https://issues.apache.org/jira/browse/SOLR-2720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13141317#comment-13141317 ]

    Mark Miller commented on SOLR-2720:
    -----------------------------------

    {noformat}
    Build: https://hudson.apache.org/hudson/job/Solr-trunk/1342/

    1 tests failed.
    REGRESSION: org.apache.solr.client.solrj.TestLBHttpSolrServer.testSimple

    Error Message:
    expected:<3> but was:<2>

    Stack Trace:
    junit.framework.AssertionFailedError: expected:<3> but was:(LuceneTestCase.java:1043)
    at org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:981)
    at org.apache.solr.client.solrj.TestLBHttpSolrServer.testSimple(TestLBHttpSolrServer.java:126)


    {noformat}
    TestLBHttpSolrServer sometimes fails
    ------------------------------------

    Key: SOLR-2720
    URL: https://issues.apache.org/jira/browse/SOLR-2720
    Project: Solr
    Issue Type: Bug
    Affects Versions: 4.0
    Reporter: Robert Muir

    Triggered a random fail with this test on tnrk.
    --
    This message is automatically generated by JIRA.
    If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
    For more information on JIRA, see: http://www.atlassian.com/software/jira



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • Sami Siren (Commented) (JIRA) at Nov 3, 2011 at 10:05 am
    [ https://issues.apache.org/jira/browse/SOLR-2720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143015#comment-13143015 ]

    Sami Siren commented on SOLR-2720:
    ----------------------------------

    I have been trying to reproduce the problems of this test and so far I have had very little success.

    I have not been able to reproduce either of these in isolation, I mean by executing only this single test case (have ran it several thousands of times).
    I was able to see the assertion failed error once when running solrj tests. That time I saw OOM Exception in the logs:

    {code}
    java.lang.OutOfMemoryError: unable to create new native thread
    {code}

    During that time I was doing other heavy actions in other processes and I suspect that the cause was indeed another process running on the same machine. In general it seems to be easy to have some sporadic errors related to that same problem: "unable to create new native thread" in many tests when the machine running the tests is used heavily for something else at the same time.

    TestLBHttpSolrServer sometimes fails
    ------------------------------------

    Key: SOLR-2720
    URL: https://issues.apache.org/jira/browse/SOLR-2720
    Project: Solr
    Issue Type: Bug
    Affects Versions: 4.0
    Reporter: Robert Muir

    Triggered a random fail with this test on tnrk.
    --
    This message is automatically generated by JIRA.
    If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
    For more information on JIRA, see: http://www.atlassian.com/software/jira



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
    For additional commands, e-mail: dev-help@lucene.apache.org
  • Sami Siren (Commented) (JIRA) at Nov 4, 2011 at 7:09 am
    [ https://issues.apache.org/jira/browse/SOLR-2720?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13143793#comment-13143793 ]

    Sami Siren commented on SOLR-2720:
    ----------------------------------

    New failure with 3.x:

    https://builds.apache.org/job/Lucene-Solr-tests-only-3.x-java7/838/testReport/junit/org.apache.solr.client.solrj/TestLBHttpSolrServer/testReliability/

    [junit] No live SolrServers available to handle this request
    [junit] org.apache.solr.client.solrj.SolrServerException: No live SolrServers available to handle this request
    [junit] at org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:222)
    [junit] at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:89)
    [junit] at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:266)
    [junit] at org.apache.solr.client.solrj.TestLBHttpSolrServer.waitForServer(TestLBHttpSolrServer.java:189)
    [junit] at org.apache.solr.client.solrj.TestLBHttpSolrServer.testReliability(TestLBHttpSolrServer.java:182)
    [junit] at org.apache.lucene.util.LuceneTestCase$2$1.evaluate(LuceneTestCase.java:440)
    [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:147)
    [junit] at org.apache.lucene.util.LuceneTestCaseRunner.runChild(LuceneTestCaseRunner.java:50)
    [junit] Caused by: org.apache.solr.client.solrj.SolrServerException: java.net.SocketTimeoutException: Read timed out
    [junit] at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:480)
    [junit] at org.apache.solr.client.solrj.impl.CommonsHttpSolrServer.request(CommonsHttpSolrServer.java:246)
    [junit] at org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:206)
    [junit] Caused by: java.net.SocketTimeoutException: Read timed out
    [junit] at java.net.SocketInputStream.socketRead0(Native Method)
    [junit] at java.net.SocketInputStream.read(SocketInputStream.java:150)
    [junit] at java.net.SocketInputStream.read(SocketInputStream.java:121)
    [junit] at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
    [junit] at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
    [junit] at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:78)
    [junit] at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:106)
    [junit] at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1116)
    [junit] at org.apache.commons.httpclient.MultiThreadedHttpConnectionManager$HttpConnectionAdapter.readLine(MultiThreadedHttpConnectionManager.java:1413)
    [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:424)

    TestLBHttpSolrServer sometimes fails
    ------------------------------------

    Key: SOLR-2720
    URL: https://issues.apache.org/jira/browse/SOLR-2720
    Project: Solr
    Issue Type: Bug
    Affects Versions: 4.0
    Reporter: Robert Muir

    Triggered a random fail with this test on tnrk.
    --
    This message is automatically generated by JIRA.
    If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
    For more information on JIRA, see: http://www.atlassian.com/software/jira



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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categorieslucene
postedAug 19, '11 at 2:06p
activeNov 4, '11 at 7:09a
posts5
users1
websitelucene.apache.org

1 user in discussion

Sami Siren (Commented) (JIRA): 5 posts

People

Translate

site design / logo © 2017 Grokbase