You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When ES runs, it now thinks there are 3 data directories. The one being set as default through the CLI arguments, plus the 2 new ones that were added in the config.
According to /_nodes/stats?all=true, we have this (snipped to relevant parts):
So the behavior that we're seeing is that the data array is being flattened into a list, and them being appended to the default. Whereas I'd expect this new list to override the default.
I feel that the problem here is that data can be declared both as a string and as a list. It may be more correct if data were always a list internally, and when declaring as a string, it's coerced into a list, even if that list had one item. But I'm not proposing the solution, just a thought.
I understand that this may not necessarily be a bug, but it is extremely unexpected behavior and took quite a bit of debugging to track down exactly what was going on.
The text was updated successfully, but these errors were encountered:
Version 1.2.2
An elastic search instance is running with the following arguments:
es.default.path.data
is coming from the deb package's init.d script.Inside the
elasticsearch.yml
, if we declarepath.data
as an array, we end up with 3 data directories according to ES.When ES runs, it now thinks there are 3 data directories. The one being set as default through the CLI arguments, plus the 2 new ones that were added in the config.
According to
/_nodes/stats?all=true
, we have this (snipped to relevant parts):And if we look at
/_nodes
we see what the raw settings are:So in this case, we see that there are 3 different data keys according to settings, and 3 different data directories. A data, data.0 and data.1.
Now, if we declare in our yaml, data as just a comma separated as a string, this does the correct behavior and overrides what the default was.
So the behavior that we're seeing is that the data array is being flattened into a list, and them being appended to the default. Whereas I'd expect this new list to override the default.
I feel that the problem here is that data can be declared both as a string and as a list. It may be more correct if data were always a list internally, and when declaring as a string, it's coerced into a list, even if that list had one item. But I'm not proposing the solution, just a thought.
I understand that this may not necessarily be a bug, but it is extremely unexpected behavior and took quite a bit of debugging to track down exactly what was going on.
The text was updated successfully, but these errors were encountered: