[TEST] restored `gateway: local` settings in ClusterDiscoveryConfiguration fork and clarify version assert

Local gateway has been removed in core, but it's a master only change. If we don't set it to local in our settings, we end up using the none gateway and KnownActionsTests fails because the local gateway endpoint are not registered to core.

Original commit: elastic/x-pack-elasticsearch@c3bc37df4b
This commit is contained in:
javanna 2014-12-02 11:06:29 +01:00 committed by Luca Cavanna
parent 16929a0da7
commit 731feff48f
1 changed files with 4 additions and 2 deletions

View File

@ -23,10 +23,12 @@ public class ClusterDiscoveryConfiguration extends SettingsSource {
static {
//see https://github.com/elasticsearch/elasticsearch/pull/8634
assert Version.CURRENT.onOrBefore(Version.V_1_4_0) : "Remove this class as the required fixes should have been released with core";
assert Version.CURRENT.onOrBefore(Version.V_1_4_0) : "Remove this class or bump the version, the required fixes will come with es core 1.5";
}
static Settings DEFAULT_NODE_SETTINGS = ImmutableSettings.settingsBuilder().put("discovery.type", "zen").build();
static Settings DEFAULT_NODE_SETTINGS = ImmutableSettings.settingsBuilder()
//.put("gateway.type", "local")
.put("discovery.type", "zen").build();
final int numOfNodes;
final Settings nodeSettings;