{"record":{"id":"a958411244b572c6","repo":"apache/hadoop","slug":"invalid-configuration-value-detected-for-s-a95841","errorCode":null,"errorMessage":"Invalid configuration value detected for %s","messagePattern":"Invalid configuration value detected for (.+?)","errorType":"validation","errorClass":"InvalidConfigurationValueException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/diagnostics/IntegerConfigurationBasicValidator.java","lineNumber":58,"sourceCode":"  public IntegerConfigurationBasicValidator(final int outlier, final int min, final int max,\n      final int defaultVal, final String configKey, final boolean throwIfInvalid) {\n    super(configKey, defaultVal, throwIfInvalid);\n    this.min = min;\n    this.max = max;\n    this.outlier = outlier;\n  }\n\n  public Integer validate(final String configValue) throws InvalidConfigurationValueException {\n    Integer result = super.validate(configValue);\n    if (result != null) {\n      return result;\n    }\n\n    try {\n      result = Integer.parseInt(configValue);\n      // throw an exception if a 'within bounds' value is missing\n      if (getThrowIfInvalid() && (result != outlier) && (result < this.min || result > this.max)) {\n        throw new InvalidConfigurationValueException(getConfigKey());\n      }\n\n      if (result == outlier) {\n        return result;\n      }\n\n      // set the value to the nearest bound if it's out of bounds\n      if (result < this.min) {\n        return this.min;\n      }\n\n      if (result > this.max) {\n        return this.max;\n      }\n    } catch (NumberFormatException ex) {\n      throw new InvalidConfigurationValueException(getConfigKey(), ex);\n    }\n","sourceCodeStart":40,"sourceCodeEnd":76,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/diagnostics/IntegerConfigurationBasicValidator.java#L40-L76","documentation":"Error \"Invalid configuration value detected for %s\" thrown in apache/hadoop.","triggerScenarios":"An integer configuration property holds a non-numeric value when ABFS validates its settings.","commonSituations":"See trigger scenarios.","solutions":["Set the named configuration key to a valid integer value.","Check for units suffixes or non-numeric characters in the configured value."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2add9630210752f88ceb1bb74eb65e37bf41da8e","analyzedAt":"2026-08-22T19:55:07.957Z","schemaVersion":2},"datasetVersion":"2026-08-22T20:17:22.307Z"}