mirror of https://github.com/apache/lucene.git
SOLR-12679: MiniSolrCloudCluster.startJettySolrRunner method should not add a duplicate jetty instance to the list
This commit is contained in:
parent
20d0f67edd
commit
3c9050c3dd
|
@ -247,7 +247,7 @@ Bug Fixes
|
|||
|
||||
* SOLR-12674: RollupStream should not use the HashQueryParser for 1 worker. (Varun Thacker)
|
||||
|
||||
* SOLR-12679: MiniSolrCloudCluster.stopJettySolrRunner should remove jetty from the internal list. (shalin)
|
||||
* SOLR-12679: MiniSolrCloudCluster internal jetty list should never have duplicates (shalin)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
|
|
@ -423,7 +423,7 @@ public class MiniSolrCloudCluster {
|
|||
*/
|
||||
public JettySolrRunner startJettySolrRunner(JettySolrRunner jetty) throws Exception {
|
||||
jetty.start(false);
|
||||
jettys.add(jetty);
|
||||
if (!jettys.contains(jetty)) jettys.add(jetty);
|
||||
return jetty;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue