[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:
parent
16929a0da7
commit
731feff48f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue