In versions prior to 8.0.0 it was ok if path.data was a symlink (to a directory) but since 8.0.0 Elasticsearch will fail to start up unless path.data is genuinely a directory.
I think this regression was introduced in this change: we used to create ${path.data}/nodes/0 but now we create ${path.data}, and Files#createDirectories is ok if one of the ancestors of the target path is a symlink but it will fail if the target path itself is not a genuine directory.
Elasticsearch Version
8.0.0 and up
Installed Plugins
N/A
Java Version
bundled
OS Version
Linux
Problem Description
In versions prior to 8.0.0 it was ok if
path.data
was a symlink (to a directory) but since 8.0.0 Elasticsearch will fail to start up unlesspath.data
is genuinely a directory.I think this regression was introduced in this change: we used to create
${path.data}/nodes/0
but now we create${path.data}
, andFiles#createDirectories
is ok if one of the ancestors of the target path is a symlink but it will fail if the target path itself is not a genuine directory.Steps to Reproduce
Logs (if relevant)