SOLR-12679: MiniSolrCloudCluster.startJettySolrRunner method should not add a duplicate jetty instance to the list

This commit is contained in:
Shalin Shekhar Mangar 2018-08-20 14:24:31 +05:30
parent 20d0f67edd
commit 3c9050c3dd
2 changed files with 2 additions and 2 deletions

View File

@ -247,7 +247,7 @@ Bug Fixes
* SOLR-12674: RollupStream should not use the HashQueryParser for 1 worker. (Varun Thacker) * 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 Optimizations
---------------------- ----------------------

View File

@ -423,7 +423,7 @@ public class MiniSolrCloudCluster {
*/ */
public JettySolrRunner startJettySolrRunner(JettySolrRunner jetty) throws Exception { public JettySolrRunner startJettySolrRunner(JettySolrRunner jetty) throws Exception {
jetty.start(false); jetty.start(false);
jettys.add(jetty); if (!jettys.contains(jetty)) jettys.add(jetty);
return jetty; return jetty;
} }