Fix failed test ClusterAndIndexReaderOnlyTests
MetaData uses two different string constants, "cluster.blocks.read_only" and "cluster.read_only", for one setting. It confuses TransportClusterUpdateSettingsAction and causes lusterAndIndexReaderOnlyTests never finish.
This commit is contained in:
parent
f79cf4149f
commit
636f7bd454
|
@ -54,7 +54,7 @@ public class MetaData implements Iterable<IndexMetaData> {
|
||||||
public static final ClusterBlock CLUSTER_READ_ONLY_BLOCK = new ClusterBlock(6, "cluster read-only (api)", false, false, ClusterBlockLevel.WRITE, ClusterBlockLevel.METADATA);
|
public static final ClusterBlock CLUSTER_READ_ONLY_BLOCK = new ClusterBlock(6, "cluster read-only (api)", false, false, ClusterBlockLevel.WRITE, ClusterBlockLevel.METADATA);
|
||||||
|
|
||||||
private static ImmutableSet<String> dynamicSettings = ImmutableSet.<String>builder()
|
private static ImmutableSet<String> dynamicSettings = ImmutableSet.<String>builder()
|
||||||
.add("cluster.read_only")
|
.add(SETTING_READ_ONLY)
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
public static ImmutableSet<String> dynamicSettings() {
|
public static ImmutableSet<String> dynamicSettings() {
|
||||||
|
|
Loading…
Reference in New Issue