Skip to content

Conversation

@jasontedor
Copy link
Member

Previously a user could set a custom config path to a relative directory using ES_PATH_CONF. In a previous change related to enabling GC logging by default, we forced the working directory for Elasticsearch to be ES_HOME. This had the impact of causing all relative paths to be relative to ES_HOME, against the intent of the user. This commit addresses this by making ES_PATH_CONF absolute before we switch the working directory to ES_HOME.

Relates #27610

Previously a user could set a custom config path to a relative directory
using ES_PATH_CONF. In a previous change related to enabling GC logging
by default, we forced the working directory for Elasticsearch to be
ES_HOME. This had the impact of causing all relative paths to be
relative to ES_HOME, against the intent of the user. This commit
addresses this by making ES_PATH_CONF absolute before we switch the
working directory to ES_HOME.
@jasontedor jasontedor added >bug review :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts v7.0.0 v6.3.0 v6.2.2 labels Feb 15, 2018
Copy link
Member

@rjernst rjernst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jasontedor
Copy link
Member Author

run the packaging tests

Copy link
Contributor

@talevy talevy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$ cd LG
$ ./TM

@hub-cap
Copy link
Contributor

hub-cap commented Feb 16, 2018

@jasontedor you could use readlink too instead of cd

@jasontedor
Copy link
Member Author

@hub-cap readlink is different on macOS versus Linux (BSD userspace versus GNU), I do not want another cross-platform branch if we can avoid it.

@hub-cap
Copy link
Contributor

hub-cap commented Feb 16, 2018

🤦‍♂️ makes sense @jasontedor

@jasontedor jasontedor merged commit 1fa701c into elastic:master Feb 16, 2018
jasontedor added a commit that referenced this pull request Feb 16, 2018
Previously a user could set a custom config path to a relative directory
using ES_PATH_CONF. In a previous change related to enabling GC logging
by default, we forced the working directory for Elasticsearch to be
ES_HOME. This had the impact of causing all relative paths to be
relative to ES_HOME, against the intent of the user. This commit
addresses this by making ES_PATH_CONF absolute before we switch the
working directory to ES_HOME.

Relates #28700
jasontedor added a commit that referenced this pull request Feb 16, 2018
Previously a user could set a custom config path to a relative directory
using ES_PATH_CONF. In a previous change related to enabling GC logging
by default, we forced the working directory for Elasticsearch to be
ES_HOME. This had the impact of causing all relative paths to be
relative to ES_HOME, against the intent of the user. This commit
addresses this by making ES_PATH_CONF absolute before we switch the
working directory to ES_HOME.

Relates #28700
@jasontedor jasontedor deleted the fix-relative-es-path-conf branch February 16, 2018 11:10
@jasontedor
Copy link
Member Author

Thanks @rjernst and @talevy.

@mark-vieira mark-vieira added the Team:Delivery Meta label for Delivery team label Nov 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

>bug :Delivery/Packaging RPM and deb packaging, tar and zip archives, shell and batch scripts Team:Delivery Meta label for Delivery team v6.2.2 v6.3.0 v7.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants