|
@@ -8,11 +8,11 @@
|
|
|
package org.elasticsearch.node;
|
|
|
|
|
|
import org.apache.lucene.tests.util.LuceneTestCase;
|
|
|
-import org.apache.lucene.util.Constants;
|
|
|
import org.apache.lucene.util.SetOnce;
|
|
|
import org.elasticsearch.bootstrap.BootstrapCheck;
|
|
|
import org.elasticsearch.bootstrap.BootstrapContext;
|
|
|
import org.elasticsearch.cluster.ClusterName;
|
|
|
+import org.elasticsearch.cluster.routing.allocation.DiskThresholdSettings;
|
|
|
import org.elasticsearch.common.ReferenceDocs;
|
|
|
import org.elasticsearch.common.breaker.CircuitBreaker;
|
|
|
import org.elasticsearch.common.bytes.BytesReference;
|
|
@@ -189,6 +189,10 @@ public class NodeTests extends ESTestCase {
|
|
|
.put(ClusterName.CLUSTER_NAME_SETTING.getKey(), InternalTestCluster.clusterName("single-node-cluster", randomLong()))
|
|
|
.put(Environment.PATH_HOME_SETTING.getKey(), tempDir)
|
|
|
.put(NetworkModule.TRANSPORT_TYPE_KEY, getTestTransportType())
|
|
|
+ // default the watermarks low values to prevent tests from failing on nodes without enough disk space
|
|
|
+ .put(DiskThresholdSettings.CLUSTER_ROUTING_ALLOCATION_LOW_DISK_WATERMARK_SETTING.getKey(), "1b")
|
|
|
+ .put(DiskThresholdSettings.CLUSTER_ROUTING_ALLOCATION_HIGH_DISK_WATERMARK_SETTING.getKey(), "1b")
|
|
|
+ .put(DiskThresholdSettings.CLUSTER_ROUTING_ALLOCATION_DISK_FLOOD_STAGE_WATERMARK_SETTING.getKey(), "1b")
|
|
|
.put(dataNode());
|
|
|
}
|
|
|
|
|
@@ -304,7 +308,6 @@ public class NodeTests extends ESTestCase {
|
|
|
}
|
|
|
|
|
|
public void testCloseOnLeakedIndexReaderReference() throws Exception {
|
|
|
- assumeFalse("AwaitsFix https://github.com/elastic/elasticsearch/issues/105236", Constants.MAC_OS_X);
|
|
|
Node node = new MockNode(baseSettings().build(), basePlugins());
|
|
|
node.start();
|
|
|
IndicesService indicesService = node.injector().getInstance(IndicesService.class);
|
|
@@ -320,7 +323,6 @@ public class NodeTests extends ESTestCase {
|
|
|
}
|
|
|
|
|
|
public void testCloseOnLeakedStoreReference() throws Exception {
|
|
|
- assumeFalse("AwaitsFix https://github.com/elastic/elasticsearch/issues/105236", Constants.MAC_OS_X);
|
|
|
Node node = new MockNode(baseSettings().build(), basePlugins());
|
|
|
node.start();
|
|
|
IndicesService indicesService = node.injector().getInstance(IndicesService.class);
|