Solr
  1. Solr
  2. SOLR-6173

Wrong failure message in TestDistributedSearch

    Details

    • Type: Test Test
    • Status: Resolved
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.10, 6.0
    • Component/s: Tests
    • Labels:
      None

      Description

      TestDistributedSearch failed on a local test run:

      [junit4] FAILURE 97.1s J0 | TestDistributedSearch.testDistribSearch <<<
         [junit4]    > Throwable #1: java.lang.AssertionError: NullPointerException with stats request on empty index
         [junit4]    > 	at __randomizedtesting.SeedInfo.seed([E16C99240716590A:608A173C70493936]:0)
         [junit4]    > 	at org.apache.solr.TestDistributedSearch.doTest(TestDistributedSearch.java:429)
         [junit4]    > 	at org.apache.solr.BaseDistributedSearchTestCase.testDistribSearch(BaseDistributedSearchTestCase.java:871)
         [junit4]    > 	at java.lang.Thread.run(Thread.java:744)
         [junit4]   2> 698023 T2550 oas.SolrTestCaseJ4.deleteCore ###deleteCore
      

      But the real failure was:

      [junit4]   2> 697659 T2550 oas.TestDistributedSearch.doTest ERROR Exception on distrib stats request on empty index org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: org.apache.solr.client.solrj.SolrServerException: No live SolrServers available to handle this request:[http://[ff01::213]:33332, http://127.0.0.1:42667, http://[ff01::083]:33332]
         [junit4]   2> 	at org.apache.solr.client.solrj.impl.HttpSolrServer.executeMethod(HttpSolrServer.java:554)
         [junit4]   2> 	at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:210)
         [junit4]   2> 	at org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:206)
         [junit4]   2> 	at org.apache.solr.client.solrj.request.QueryRequest.process(QueryRequest.java:91)
         [junit4]   2> 	at org.apache.solr.client.solrj.SolrServer.query(SolrServer.java:301)
         [junit4]   2> 	at org.apache.solr.BaseDistributedSearchTestCase.queryServer(BaseDistributedSearchTestCase.java:510)
         [junit4]   2> 	at org.apache.solr.BaseDistributedSearchTestCase.query(BaseDistributedSearchTestCase.java:558)
         [junit4]   2> 	at org.apache.solr.BaseDistributedSearchTestCase.query(BaseDistributedSearchTestCase.java:540)
         [junit4]   2> 	at org.apache.solr.BaseDistributedSearchTestCase.query(BaseDistributedSearchTestCase.java:519)
         [junit4]   2> 	at org.apache.solr.TestDistributedSearch.doTest(TestDistributedSearch.java:426)
         [junit4]   2> 	at org.apache.solr.BaseDistributedSearchTestCase.testDistribSearch(BaseDistributedSearchTestCase.java:871)
      

      I introduced the wrong assert in SOLR-5515

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1603494 from shalin@apache.org in branch 'dev/trunk'
        [ https://svn.apache.org/r1603494 ]

        SOLR-6173: Fixed wrong failure message in TestDistributedSearch

        Show
        ASF subversion and git services added a comment - Commit 1603494 from shalin@apache.org in branch 'dev/trunk' [ https://svn.apache.org/r1603494 ] SOLR-6173 : Fixed wrong failure message in TestDistributedSearch
        Hide
        ASF subversion and git services added a comment -

        Commit 1603495 from shalin@apache.org in branch 'dev/branches/branch_4x'
        [ https://svn.apache.org/r1603495 ]

        SOLR-6173: Fixed wrong failure message in TestDistributedSearch

        Show
        ASF subversion and git services added a comment - Commit 1603495 from shalin@apache.org in branch 'dev/branches/branch_4x' [ https://svn.apache.org/r1603495 ] SOLR-6173 : Fixed wrong failure message in TestDistributedSearch

          People

          • Assignee:
            Shalin Shekhar Mangar
            Reporter:
            Shalin Shekhar Mangar
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development