From 636f7bd4546444f3d17c4f170f4ac7b899ad9f93 Mon Sep 17 00:00:00 2001 From: Edward Wang Date: Thu, 29 Dec 2011 03:47:37 +0800 Subject: [PATCH] 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. --- src/main/java/org/elasticsearch/cluster/metadata/MetaData.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/cluster/metadata/MetaData.java b/src/main/java/org/elasticsearch/cluster/metadata/MetaData.java index 916637fd61b..cdc6728ec93 100644 --- a/src/main/java/org/elasticsearch/cluster/metadata/MetaData.java +++ b/src/main/java/org/elasticsearch/cluster/metadata/MetaData.java @@ -54,7 +54,7 @@ public class MetaData implements Iterable { public static final ClusterBlock CLUSTER_READ_ONLY_BLOCK = new ClusterBlock(6, "cluster read-only (api)", false, false, ClusterBlockLevel.WRITE, ClusterBlockLevel.METADATA); private static ImmutableSet dynamicSettings = ImmutableSet.builder() - .add("cluster.read_only") + .add(SETTING_READ_ONLY) .build(); public static ImmutableSet dynamicSettings() {