apache/hadoop · error · IllegalArgumentException

windowSizeMillis > 0

Error message

windowSizeMillis > 0

What it means

Error "windowSizeMillis > 0" thrown in apache/hadoop.

Source

Thrown at hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/SlidingWindowHdrHistogram.java:96

  private double tailLatencyPercentile;
  private int tailLatencyMinDeviation;

  private double p50 = ZERO_D;
  private double p90 = ZERO_D;
  private double p99 = ZERO_D;
  private double tailLatency = ZERO_D;
  private int deviation = ZERO;

  public SlidingWindowHdrHistogram(long windowSizeMillis,
      int numberOfSegments,
      int minSampleSize,
      int tailLatencyPercentile,
      int tailLatencyMinDeviation,
      long highestTrackableValue,
      int significantFigures,
      final AbfsRestOperationType operationType) {
    if (windowSizeMillis <= ZERO) {
      throw new IllegalArgumentException("windowSizeMillis > 0");
    }
    if (numberOfSegments <= ZERO) {
      throw new IllegalArgumentException("numberOfSegments > 0");
    }
    if (highestTrackableValue <= ZERO) {
      throw new IllegalArgumentException("highestTrackableValue > 0");
    }
    if (significantFigures < 1 || significantFigures > 5) {
      throw new IllegalArgumentException("significantFigures in [1,5]");
    }

    this.windowSizeMillis = windowSizeMillis;
    this.numSegments = numberOfSegments;
    this.timeSegmentDurationMillis = windowSizeMillis / numberOfSegments;
    this.highestTrackableValue = highestTrackableValue;
    this.significantFigures = significantFigures;
    this.operationType = operationType;
    this.minSampleSize = minSampleSize;

View on GitHub (pinned to 2add963021)

Solutions

  1. Configure a positive sliding window size in milliseconds for the histogram.
  2. Fix the corresponding metrics configuration property.

When it happens

Trigger: SlidingWindowHdrHistogram is created with windowSizeMillis <= 0.

Common situations: See trigger scenarios.


AI-assisted analysis of apache/hadoop@2add963021 (2026-08-22). Data as JSON: /api/errors/b6c98f3eca954260. Report an issue: GitHub.