mirror of https://github.com/apache/lucene.git
Fix TestStressCloudBlindAtomicUpdates to play nice with tests.dups
This commit is contained in:
parent
97046c7054
commit
3ed31cfbc7
|
@ -81,7 +81,7 @@ public class TestStressCloudBlindAtomicUpdates extends SolrCloudTestCase {
|
||||||
/** A basic client for operations at the cloud level, default collection will be set */
|
/** A basic client for operations at the cloud level, default collection will be set */
|
||||||
private static CloudSolrClient CLOUD_CLIENT;
|
private static CloudSolrClient CLOUD_CLIENT;
|
||||||
/** One client per node */
|
/** One client per node */
|
||||||
private static ArrayList<HttpSolrClient> CLIENTS = new ArrayList<>(5);
|
private static final ArrayList<HttpSolrClient> CLIENTS = new ArrayList<>(5);
|
||||||
|
|
||||||
/** Service to execute all parallel work
|
/** Service to execute all parallel work
|
||||||
* @see #NUM_THREADS
|
* @see #NUM_THREADS
|
||||||
|
@ -136,6 +136,7 @@ public class TestStressCloudBlindAtomicUpdates extends SolrCloudTestCase {
|
||||||
|
|
||||||
waitForRecoveriesToFinish(CLOUD_CLIENT);
|
waitForRecoveriesToFinish(CLOUD_CLIENT);
|
||||||
|
|
||||||
|
CLIENTS.clear();
|
||||||
for (JettySolrRunner jetty : cluster.getJettySolrRunners()) {
|
for (JettySolrRunner jetty : cluster.getJettySolrRunners()) {
|
||||||
assertNotNull("Cluster contains null jetty?", jetty);
|
assertNotNull("Cluster contains null jetty?", jetty);
|
||||||
final URL baseUrl = jetty.getBaseUrl();
|
final URL baseUrl = jetty.getBaseUrl();
|
||||||
|
@ -167,7 +168,7 @@ public class TestStressCloudBlindAtomicUpdates extends SolrCloudTestCase {
|
||||||
}
|
}
|
||||||
IOUtils.closeQuietly(client);
|
IOUtils.closeQuietly(client);
|
||||||
}
|
}
|
||||||
CLIENTS = null;
|
CLIENTS.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
|
|
Loading…
Reference in New Issue