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

Shutdown SolrServer on tests

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.7, 6.0
    • 4.8, 6.0
    • None
    • None

    Description

      I noticed that many tests create multiple HttpSolrServer but never call the shutdown. I created a Jira for BasicDistributedZk2Test and BasicDistributedZkTest some time ago but didn’t check for all tests (SOLR-5684). I added the missing shutdowns that I found in other tests now.
      I’m also wondering if it makes sense to add some kind of check in the tests, in a similar way that open/close of IndexSearchers is checked (probably, not blocking or falling the test if open/close doesn’t much, but maybe to output a warning to the logs?)

      Attachments

        1. SOLR-5883.patch
          44 kB
          Tomas Eduardo Fernandez Lobbe

        Activity

          People

            markrmiller@gmail.com Mark Miller
            tflobbe Tomas Eduardo Fernandez Lobbe
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: