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

Provide a MiniSolrCloudCluster to enable easier testing



    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.7, 6.0
    • Fix Version/s: 4.8, 6.0
    • Component/s: SolrCloud
    • Labels:


      Today, the SolrCloud tests are based on the LuceneTestCase class hierarchy, which has a couple of issues around support for downstream projects:

      • It's difficult to test SolrCloud support in a downstream project that may have its own test framework. For example, some projects have support for different storage backends (e.g. Solr/ElasticSearch/HBase) and want tests against each of the different backends. This is difficult to do cleanly, because the Solr tests require derivation from LuceneTestCase, while the other don't
      • The LuceneTestCase class hierarchy is really designed for internal solr tests (e.g. it randomizes a lot of parameters to get test coverage, but a downstream project probably doesn't care about that). It's also quite complicated and dense, much more so than a downstream project would want.

      Given these reasons, it would be nice to provide a simple "MiniSolrCloudCluster", similar to how HDFS provides a MiniHdfsCluster or HBase provides a MiniHBaseCluster.


        1. SOLR-5865.patch
          15 kB
          Gregory Chanan
        2. SOLR-5865.patch
          15 kB
          Gregory Chanan
        3. SOLR-5865addendum.patch
          1 kB
          Gregory Chanan
        4. SOLR-5865addendum2.patch
          2 kB
          Gregory Chanan
        5. SOLR-5865wait.patch
          4 kB
          Gregory Chanan



            • Assignee:
              markrmiller@gmail.com Mark Miller
              gchanan Gregory Chanan
            • Votes:
              0 Vote for this issue
              5 Start watching this issue


              • Created: