Failed to parse double setting setting with value sValue – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 6.8-8.9

Briefly, this error occurs when Elasticsearch tries to parse a setting value as a double, but the provided value is not a valid double. This could be due to incorrect formatting or a non-numeric value. To resolve this issue, you should first check the setting value to ensure it’s a valid double. If it’s not, correct the value. If the value is a valid double but still causing an error, it might be due to locale-specific formatting. In this case, try using a period as the decimal separator.

This guide will help you check for common problems that cause the log ” Failed to parse double setting [” + setting + “] with value [” + sValue + “] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: settings.

Log Context

Log “Failed to parse double setting [” + setting + “] with value [” + sValue + “]” class name is Settings.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 return defaultValue;
 }
 try {
 return Double.parseDouble(sValue);
 } catch (NumberFormatException e) {
 throw new SettingsException("Failed to parse double setting [" + setting + "] with value [" + sValue + "]"; e);
 }
 }  /**
 * Returns the setting value (as int) associated with the setting key. If it does not exists;

 

 [ratemypost]

Opster
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.