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

Wrong failure message in TestDistributedSearch

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 4.10, 6.0
    • Tests
    • 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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            shalin Shalin Shekhar Mangar
            shalin Shalin Shekhar Mangar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment