From 1f56a9b9fe8fbd13b928d49775b8ca745c922817 Mon Sep 17 00:00:00 2001 From: Roman Puchkovskiy Date: Sat, 15 Feb 2020 19:22:40 +0400 Subject: [PATCH] DATAES-741 / Tests fail due to Elasticsearch cluster 'blocks' on nearly-full file-systems. Original PR: #393 --- .../java/org/springframework/data/elasticsearch/Utils.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/java/org/springframework/data/elasticsearch/Utils.java b/src/test/java/org/springframework/data/elasticsearch/Utils.java index 1c8ffc791..cdaf0e4e6 100644 --- a/src/test/java/org/springframework/data/elasticsearch/Utils.java +++ b/src/test/java/org/springframework/data/elasticsearch/Utils.java @@ -30,6 +30,7 @@ import org.springframework.data.elasticsearch.client.NodeClientFactoryBean; * @author Artur Konczak * @author Ilkang Na * @author Peter-Josef Meisch + * @author Roman Puchkovskiy */ public class Utils { @@ -46,6 +47,11 @@ public class Utils { .put("path.data", pathData) // .put("cluster.name", clusterName) // .put("node.max_local_storage_nodes", 100)// + // the following 3 settings are needed to avoid problems on big, but + // almost full filesystems, see DATAES-741 + .put("cluster.routing.allocation.disk.watermark.low", "1gb")// + .put("cluster.routing.allocation.disk.watermark.high", "1gb")// + .put("cluster.routing.allocation.disk.watermark.flood_stage", "1gb")// .build(), // Collections.singletonList(Netty4Plugin.class)); }