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:
Edward Wang 2011-12-29 03:47:37 +08:00 committed by Shay Banon
parent f79cf4149f
commit 636f7bd454
1 changed files with 1 additions and 1 deletions

View File

@ -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() {