{"record":{"id":"ff467bd4ccd48976","repo":"apache/hadoop","slug":"invalid-configuration-value-detected-for-s-ff467b","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/LongConfigurationBasicValidator.java","lineNumber":48,"sourceCode":"  private final long max;\n\n  public LongConfigurationBasicValidator(final long min, final long max, final long defaultVal, final String configKey, final boolean throwIfInvalid) {\n    super(configKey, defaultVal, throwIfInvalid);\n    this.min = min;\n    this.max = max;\n  }\n\n  public Long validate(final String configValue) throws InvalidConfigurationValueException {\n    Long result = super.validate(configValue);\n    if (result != null) {\n      return result;\n    }\n\n    try {\n      result = Long.parseLong(configValue);\n      // throw an exception if a 'within bounds' value is missing\n      if (getThrowIfInvalid() && (result < this.min || result > this.max)) {\n        throw new InvalidConfigurationValueException(getConfigKey());\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      } else if (result > this.max) {\n        return this.max;\n      }\n    } catch (NumberFormatException ex) {\n      throw new InvalidConfigurationValueException(getConfigKey(), ex);\n    }\n\n    return result;\n  }\n}\n","sourceCodeStart":30,"sourceCodeEnd":64,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/diagnostics/LongConfigurationBasicValidator.java#L30-L64","documentation":"Error \"Invalid configuration value detected for %s\" thrown in apache/hadoop.","triggerScenarios":"A long-typed configuration property holds an invalid value during ABFS configuration validation.","commonSituations":"See trigger scenarios.","solutions":["Set the named configuration key to a valid long integer value.","Verify the value is within the long range and contains no illegal characters."],"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"}