Log setting with value is missing units; assuming default units () but in future versions this will be a hard error – How To Solve Related Issues

Log setting with value is missing units; assuming default units () but in future versions this will be a hard error – How To Solve Related Issues

Updated: Feb-20

Elasticsearch Version: 1.7-8.0

Background

To resolve issues causing many log errors you can try our Elasticsearch Check-Up it analyses ES configuration to provide actionable recommendations (no installation required) 


To troubleshoot log “setting with value is missing units; assuming default units () but in future versions this will be a hard error” it’s important to understand a few problems related to Elasticsearch concepts cluster, metadata. See bellow important tips and explanations on these concepts

Log Context

Log”{} setting [{}] with value [{}] is missing units; assuming default units ({}) but in future versions this will be a hard error” classname is MetaData.java
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

             Long.parseLong(settingValue);
        } catch (NumberFormatException e) {
            return settingValue;
        }
        // It's a naked number that previously would be interpreted as default unit; now we add it:
        logger.warn("{} setting [{}] with value [{}] is missing units; assuming default units ({}) but in future versions this will be a hard error";
                unitName; settingName; settingValue; unit);
        return settingValue + unit;
    }

    /** As of 2.0 we require units for time and byte-sized settings. This methods adds default units to any




Related issues to this log

We have gathered selected Q&A from the community and issues from Github, that can help fix related issues please review the following for further information :

1 Request Was Aborted Could Not Crea  

T Is A Nullreferenceexception And H  

 

About Opster

Opster detects, resolves, optimizes, automates and prevents incidents in Elasticsearch. Opster’s line of products delivers a fundamentally more effective Elasticsearch operation and backs it up with superb production support and consulting.

Find Configuration Errors

Analyze Now