cluster.routing.allocation.awareness.attributes setting does not accept an array of values #30617
Labels
>bug
:Distributed Coordination/Allocation
All issues relating to the decision making around placing a shard (both master logic & on the nodes)
Not sure if this is a bug or a "work as designed", but I see a lot of students run into issues with this in training, so I figured more folks may have problems with this. We may want to make this a bit more user friendly.
When configuring
cluster.routing.allocation.awareness.attributes
via_cluster/settings
, the setting does not accept an array of values. If you do provide an array of values, the cluster will end up in a red status when creating a new index.Elasticsearch version (
bin/elasticsearch --version
):Version: 6.2.4, Build: ccec39f/2018-04-12T20:37:28.497551Z, JVM: 1.8.0_77
Plugins installed: []
none
JVM version (
java -version
):java version "1.8.0_77"
Java(TM) SE Runtime Environment (build 1.8.0_77-b03)
Java HotSpot(TM) 64-Bit Server VM (build 25.77-b03, mixed mode)
OS version (
uname -a
if on a Unix-like system):Darwin MacBook-1265.local 17.4.0 Darwin Kernel Version 17.4.0: Sun Dec 17 09:19:54 PST 2017; root:xnu-4570.41.2~1/RELEASE_X86_64 x86_64
Description of the problem including expected versus actual behavior:
Because the setting is named "attributes", folks expect to be able to provide an array of values for this setting (for example
["bar","baz"]
). However, if you do so, the cluster ends up in a red status when creating a new index. Even when configuring multiple values, these values have to be provided comma-separated as a single string (for example"bar,baz"
).Steps to reproduce:
node.attr.foo: bar
GET _cluster/health
PUT my_index
GET _cluster/health
GET _cluster/allocation/explain
to find out why:GET _cluster/health
Provide logs (if relevant):
The text was updated successfully, but these errors were encountered: