Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2162

TestLBHttpSolrServer.testSimple test failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1, 4.0-ALPHA
    • 3.1, 4.0-ALPHA
    • Build
    • None
    • Hudson

    Description

      TestLBHttpSolrServer failed, with this error:

      java.lang.IllegalStateException: Connection is not open

      Here is the stacktrace:

          [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
      

      Attachments

        1. SOLR-2162_test.patch
          2 kB
          Robert Muir

        Activity

          People

            Unassigned Unassigned
            rcmuir Robert Muir
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: