mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-11 07:25:23 +00:00
Before this commit he tests always run bin/plugin as root which is somewhat unrealistic and causes trouble (log files owned by root instead of elasticsearch). After this commit `bin/plugin` runs as root when elasticsearch is installed via the repository and as elasticsearch otherwise which is much more realistic. This also adds extra timeout to starting elasticsearch which is required when all the plugins are installed. And it fixes up a problem with logging elasticsearch's log if elasticsearch doesn't start which came up multiple time while debugging this problem. Also adds docs recommending running `bin/plugin` as the user that owns the Elasticsearch files or root if installed with the packages. Closes #13557