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

Add SolrCloudTestCase base class

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.5.1, 6.0
    • None
    • None

    Description

      At the moment, if you want to write unit tests for Cloud components, you have to extend AbstractDistribZkTestCase, which has a number of disadvantages:

      • the API isn't well-documented
      • you get a default configuration loaded into ZK, and it's not trivial to add separate ones
      • you get a default collection, whether you want one or not
      • the test cluster isn't static, which means that it's started up and shutdown after every test function. To avoid tests being incredibly slow, we end up writing single-function tests that call out to sub-functions, losing the benefits of execution-order randomization.

      It would be more useful to have a properly configurable and documented testcase base class.

      Attachments

        1. SOLR-8758.patch
          5 kB
          Alan Woodward

        Issue Links

          Activity

            People

              Unassigned Unassigned
              romseygeek Alan Woodward
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: