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

add some prelim assertions to OverseerTest

    XMLWordPrintableJSON

Details

    • Test
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0, 6.0
    • None
    • None

    Description

      There isn't much i understand about OverseerTest, but today while doing a full test run I got an unreproducible assertion failure from this line...

      assertNotNull("could not find counter for shard:" + ids[i], ai);
      

      ...in which the assertion message indicated that not only was "ai" null, but "ids[i]" was null as well.

      Poking arround the test a bit, i think what's happening here is that some of the preliminary logic in testShardAssignmentBigger has bounded wait loops to "make sure ...." things have happened, but there is no assertion that these things actually happen if that the loop bound is exhausted - which can lead to missleading/confusing errors further on in the test.

      Attachments

        1. SOLR-3768.patch
          2 kB
          Chris M. Hostetter
        2. capture-1.jpg
          41 kB
          Dawid Weiss

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: