Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Remove spaces from commented config lines in elasticsearch.yml and logging.yml #5842
If a user has a mix of indented and unindented lines in elasticsearch.yml or logging.yml, elasticsearch will not parse the YML file correctly on startup. Any indented lines after an unindented line will be treated as children of the unindented line, and all of those lines will not parse correctly.
The sample config comments in elasticsearch.yml and logging.yml include space characters after the '#' character at the beginning of the lines. This encourages users to uncomment them by removing the '#' character without touching the space. This can lead to trouble if users later add other config keys without including the space. It would be better if the space characters were removed.