From d25c4cc91407a80a2b7052ea9e1a96bbcf7f1f5a Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Sun, 18 Mar 2012 11:55:35 +0200 Subject: [PATCH] When `node.data` is set to `false`, the upgrade shards process from 0.18 fails, closes #1793. --- src/main/java/org/elasticsearch/cluster/node/DiscoveryNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/elasticsearch/cluster/node/DiscoveryNode.java b/src/main/java/org/elasticsearch/cluster/node/DiscoveryNode.java index df0a39391a5..74486c3c928 100644 --- a/src/main/java/org/elasticsearch/cluster/node/DiscoveryNode.java +++ b/src/main/java/org/elasticsearch/cluster/node/DiscoveryNode.java @@ -58,7 +58,7 @@ public class DiscoveryNode implements Streamable, Serializable { } public static boolean dataNode(Settings settings) { - String data = settings.get("data"); + String data = settings.get("node.data"); if (data == null) { return !clientNode(settings); }