|
@@ -24,6 +24,7 @@ import com.carrotsearch.randomizedtesting.SysGlobals;
|
|
|
import com.carrotsearch.randomizedtesting.generators.RandomInts;
|
|
|
import com.carrotsearch.randomizedtesting.generators.RandomPicks;
|
|
|
import com.carrotsearch.randomizedtesting.generators.RandomStrings;
|
|
|
+
|
|
|
import org.apache.lucene.store.StoreRateLimiting;
|
|
|
import org.apache.lucene.util.IOUtils;
|
|
|
import org.elasticsearch.ElasticsearchException;
|
|
@@ -117,7 +118,6 @@ import java.util.function.Predicate;
|
|
|
import java.util.stream.Collectors;
|
|
|
import java.util.stream.Stream;
|
|
|
|
|
|
-import static junit.framework.Assert.fail;
|
|
|
import static org.apache.lucene.util.LuceneTestCase.TEST_NIGHTLY;
|
|
|
import static org.apache.lucene.util.LuceneTestCase.rarely;
|
|
|
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
|
|
@@ -127,6 +127,7 @@ import static org.hamcrest.Matchers.equalTo;
|
|
|
import static org.hamcrest.Matchers.greaterThan;
|
|
|
import static org.hamcrest.Matchers.greaterThanOrEqualTo;
|
|
|
import static org.junit.Assert.assertThat;
|
|
|
+import static org.junit.Assert.fail;
|
|
|
|
|
|
/**
|
|
|
* InternalTestCluster manages a set of JVM private nodes and allows convenient access to them.
|
|
@@ -1045,6 +1046,7 @@ public final class InternalTestCluster extends TestCluster {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @SuppressWarnings("deprecation") // https://github.com/elastic/elasticsearch/issues/15844
|
|
|
private void randomlyResetClients() throws IOException {
|
|
|
// only reset the clients on nightly tests, it causes heavy load...
|
|
|
if (RandomizedTest.isNightly() && rarely(random)) {
|