|
@@ -51,6 +51,7 @@ import org.elasticsearch.node.NodeValidationException;
|
|
|
import org.elasticsearch.plugins.Plugin;
|
|
import org.elasticsearch.plugins.Plugin;
|
|
|
import org.elasticsearch.script.ScriptService;
|
|
import org.elasticsearch.script.ScriptService;
|
|
|
import org.elasticsearch.search.internal.SearchContext;
|
|
import org.elasticsearch.search.internal.SearchContext;
|
|
|
|
|
+import org.elasticsearch.transport.TransportSettings;
|
|
|
import org.junit.AfterClass;
|
|
import org.junit.AfterClass;
|
|
|
import org.junit.BeforeClass;
|
|
import org.junit.BeforeClass;
|
|
|
|
|
|
|
@@ -198,6 +199,7 @@ public abstract class ESSingleNodeTestCase extends ESTestCase {
|
|
|
.put(ScriptService.SCRIPT_MAX_COMPILATIONS_RATE.getKey(), "1000/1m")
|
|
.put(ScriptService.SCRIPT_MAX_COMPILATIONS_RATE.getKey(), "1000/1m")
|
|
|
.put(EsExecutors.PROCESSORS_SETTING.getKey(), 1) // limit the number of threads created
|
|
.put(EsExecutors.PROCESSORS_SETTING.getKey(), 1) // limit the number of threads created
|
|
|
.put("transport.type", getTestTransportType())
|
|
.put("transport.type", getTestTransportType())
|
|
|
|
|
+ .put(TransportSettings.PORT.getKey(), ESTestCase.getPortRange())
|
|
|
.put(Node.NODE_DATA_SETTING.getKey(), true)
|
|
.put(Node.NODE_DATA_SETTING.getKey(), true)
|
|
|
.put(NodeEnvironment.NODE_ID_SEED_SETTING.getKey(), random().nextLong())
|
|
.put(NodeEnvironment.NODE_ID_SEED_SETTING.getKey(), random().nextLong())
|
|
|
// default the watermarks low values to prevent tests from failing on nodes without enough disk space
|
|
// default the watermarks low values to prevent tests from failing on nodes without enough disk space
|