Description
Elasticsearch version (bin/elasticsearch --version
):
7.3.0
Plugins installed: []
JVM version (java -version
):
OS version (uname -a
if on a Unix-like system):
Description of the problem including expected versus actual behavior:
While working to consolidate monitoring of the clusters, we applied the following dynamic setting to the cluster persistent settings xpack.monitoring.exporters.cloud_monitoring.host
. Unfortunately, there was a mistake in the host value as we included a /
at the end. For example,
https://myhost:9243/
The command was accepted and applied by the cluster. A bit later, the cluster became unresponsive. Upon investigation, we saw the following error message in the log:
org.elasticsearch.common.settings.SettingsException: [xpack.monitoring.exporters.cloud_monitoring.host] invalid host: [https://myhost:9243/]
Three issues here:
- The setting was accepted by elasticsearch as valid when it is not
- The cluster became unresponsive
- There is not an easy way to fix the issue. (In the end, we were able to update the cluster state file via hex editor.)
Steps to reproduce:
- Update cluster persistent setting
xpack.monitoring.exporters.cloud_monitoring.host
- Set the value to
https://myhost:9243/
Please note/
at the end - Observe the setting is accepted as valid
- Cluster become unresponsive
Provide logs (if relevant):