From d94e3889040b51857fc86eb274d2388f96c7ac24 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Sun, 14 Aug 2016 21:03:05 -0400 Subject: [PATCH] Fix number of nodes in discovery disruption tests This commit fixes the number of max local storage nodes setting used in the discovery disruption tests. In some cases (randomly but rarely), the acked indexing test can run with five nodes instead of three, breaching the max local storage nodes configuration. --- .../discovery/DiscoveryWithServiceDisruptionsIT.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/test/java/org/elasticsearch/discovery/DiscoveryWithServiceDisruptionsIT.java b/core/src/test/java/org/elasticsearch/discovery/DiscoveryWithServiceDisruptionsIT.java index e5de81f7380..9acb1f738bc 100644 --- a/core/src/test/java/org/elasticsearch/discovery/DiscoveryWithServiceDisruptionsIT.java +++ b/core/src/test/java/org/elasticsearch/discovery/DiscoveryWithServiceDisruptionsIT.java @@ -208,7 +208,7 @@ public class DiscoveryWithServiceDisruptionsIT extends ESIntegTestCase { // TODO: Rarely use default settings form some of these Settings nodeSettings = Settings.builder() .put(settings) - .put(NodeEnvironment.MAX_LOCAL_STORAGE_NODES_SETTING.getKey(), 4) + .put(NodeEnvironment.MAX_LOCAL_STORAGE_NODES_SETTING.getKey(), numberOfNodes) .put(ElectMasterService.DISCOVERY_ZEN_MINIMUM_MASTER_NODES_SETTING.getKey(), minimumMasterNode) .build();