forked from elastic/elasticsearch
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Settings: Remove environment from transport client
Transport clients run embedded within external applications, so elasticsearch should not be doing anything with the filesystem, as there is not elasticsearch home. This change makes a number of cleanups to the internal API for loading settings and creating an environment. The loadFromConfig option was removed, since it was always true except for tests. We now always attempt to load settings from config a file when an environment is created. The prepare methods were also simplified so there is now prepareSettingsAndEnvironment which nodes use, and prepareSettings which the transport client uses. I also attempted to improve the tests, but there is a still a lot of follow up work to do there. closes elastic#13155
- Loading branch information
Showing
12 changed files
with
292 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.