{"record":{"id":"b6c98f3eca954260","repo":"apache/hadoop","slug":"windowsizemillis-0","errorCode":null,"errorMessage":"windowSizeMillis > 0","messagePattern":"windowSizeMillis > 0","errorType":"validation","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/SlidingWindowHdrHistogram.java","lineNumber":96,"sourceCode":"  private double tailLatencyPercentile;\n  private int tailLatencyMinDeviation;\n\n  private double p50 = ZERO_D;\n  private double p90 = ZERO_D;\n  private double p99 = ZERO_D;\n  private double tailLatency = ZERO_D;\n  private int deviation = ZERO;\n\n  public SlidingWindowHdrHistogram(long windowSizeMillis,\n      int numberOfSegments,\n      int minSampleSize,\n      int tailLatencyPercentile,\n      int tailLatencyMinDeviation,\n      long highestTrackableValue,\n      int significantFigures,\n      final AbfsRestOperationType operationType) {\n    if (windowSizeMillis <= ZERO) {\n      throw new IllegalArgumentException(\"windowSizeMillis > 0\");\n    }\n    if (numberOfSegments <= ZERO) {\n      throw new IllegalArgumentException(\"numberOfSegments > 0\");\n    }\n    if (highestTrackableValue <= ZERO) {\n      throw new IllegalArgumentException(\"highestTrackableValue > 0\");\n    }\n    if (significantFigures < 1 || significantFigures > 5) {\n      throw new IllegalArgumentException(\"significantFigures in [1,5]\");\n    }\n\n    this.windowSizeMillis = windowSizeMillis;\n    this.numSegments = numberOfSegments;\n    this.timeSegmentDurationMillis = windowSizeMillis / numberOfSegments;\n    this.highestTrackableValue = highestTrackableValue;\n    this.significantFigures = significantFigures;\n    this.operationType = operationType;\n    this.minSampleSize = minSampleSize;","sourceCodeStart":78,"sourceCodeEnd":114,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/SlidingWindowHdrHistogram.java#L78-L114","documentation":"Error \"windowSizeMillis > 0\" thrown in apache/hadoop.","triggerScenarios":"SlidingWindowHdrHistogram is created with windowSizeMillis <= 0.","commonSituations":"See trigger scenarios.","solutions":["Configure a positive sliding window size in milliseconds for the histogram.","Fix the corresponding metrics configuration property."],"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"}