Skip to content

Commit 1f56a9b

Browse files
authored
DATAES-741 / Tests fail due to Elasticsearch cluster 'blocks' on nearly-full file-systems.
Original PR: spring-projects#393
1 parent 9696f41 commit 1f56a9b

File tree

1 file changed

+6
-0
lines changed
  • src/test/java/org/springframework/data/elasticsearch

1 file changed

+6
-0
lines changed

src/test/java/org/springframework/data/elasticsearch/Utils.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* @author Artur Konczak
3131
* @author Ilkang Na
3232
* @author Peter-Josef Meisch
33+
* @author Roman Puchkovskiy
3334
*/
3435
public class Utils {
3536

@@ -46,6 +47,11 @@ public static Node getNode() {
4647
.put("path.data", pathData) //
4748
.put("cluster.name", clusterName) //
4849
.put("node.max_local_storage_nodes", 100)//
50+
// the following 3 settings are needed to avoid problems on big, but
51+
// almost full filesystems, see DATAES-741
52+
.put("cluster.routing.allocation.disk.watermark.low", "1gb")//
53+
.put("cluster.routing.allocation.disk.watermark.high", "1gb")//
54+
.put("cluster.routing.allocation.disk.watermark.flood_stage", "1gb")//
4955
.build(), //
5056
Collections.singletonList(Netty4Plugin.class));
5157
}

0 commit comments

Comments
 (0)