You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Varun Thacker (JIRA)" <ji...@apache.org> on 2015/06/26 18:53:05 UTC
[jira] [Created] (SOLR-7725) Solr tests should have a easy way to
not start up with the bootstrapped collections
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org