版本: 6.8-8.9
简而言之,当 Elasticsearch 无法将设置的值转换为整数时会发生此错误。这可能是由于设置的值是非整数或无法解析为整数的字符串导致的。要解决此问题,你应该检查设置的值并确保它是一个整数。如果是字符串,请确保它可以被解析为整数。如果该设置不需要整数值,你可能需要调整要求其为整数的代码或配置。
日志上下文 #
日志 “Failed to parse int setting [” + setting + “] with value [” + sValue + “]” 类名是 Settings.java。 我们从 Elasticsearch 源代码中提取了以下内容,供那些寻求深入上下文的人使用:
return defaultValue;
}
try {
return Integer.parseInt(sValue);
} catch (NumberFormatException e) {
throw new SettingsException("Failed to parse int setting [" + setting + "] with value [" + sValue + "]"; e);
}
} /**
* Returns the setting value (as long) associated with the setting key. If it does not exists;





