Skip to content

default.path.data included as a data path when path.data configured as yaml array #23981

Closed
@tylerfontaine

Description

Elasticsearch version: 5.3.0

OS version: Tried in Centos 7 and OS X, though I suspect it doesn't matter.

Description of the problem including expected versus actual behavior:
When using multiple data paths, or even specifying just a single data path as an array in yaml, elasticearch includes whatever is passed to it as default.path.data, such as when installed via RPM or DEB packages, from the systemd unit OR the init.d script, since you set this when you execute the es binary:

-Edefault.path.data=${DATA_DIR}

Steps to reproduce:
Repro:

Set this in the elasticsearch.yml

path.data:
- "/some/datapath1"

run this:

bin/elasticsearch -Edefault.path.data="/some/datapath2"

And elasticsearch will start configured with both data paths.

Provide logs (if relevant):

[2017-04-07T13:30:49,987][INFO ][o.e.e.NodeEnvironment    ] [jCWIeyS] using [2] data paths, mounts [[/ (/dev/disk1)]], net usable_space [198.8gb], net total_space [464.7gb], spins? [unknown], types [hfs]

This also happens when you use this array format:

path.data: ["/some/datapath1"]

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions