Varun Thacker created SOLR-7725:
-----------------------------------

             Summary: Solr tests should have a easy way to not start up with 
the bootstrapped collections
                 Key: SOLR-7725
                 URL: https://issues.apache.org/jira/browse/SOLR-7725
             Project: Solr
          Issue Type: Improvement
            Reporter: Varun Thacker


Tests which want to run in its own collection and do not need the default 
collection still extend AbstractFullDistribZkTestBase

We are paying the penalty of creating these extra collections with potentially 
more servers than required. This can add a few seconds to each test at least. 

I tried moving the test I wrote on SOLR-5750 to using a MiniSolrCloudCluster 
and got a 10s improvement.  The downside is I can't use methods such as 
{{getDoc()}} , {{waitForRecoveriesToFinish()}} since I am now extending 
SolrTestCaseJ4.

An easy solution right now is to move methods like waitForRecoveriesToFinish to 
a util class and have all tests which don't rely on the default collection or 
the control_collection to use MiniSolrCloudCluster. 

A longer term solution would be to provide this from the test framework itself.

An easy way to check how many tests don't need the default collection is to see 
which all tests are calling - {{waitForRecoveriesToFinish(String collection, 
boolean verbose)}} I can see roughly ~25 test classes calling it.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to