{"record":{"id":"164736db91334d9d","repo":"apache/hadoop","slug":"dispatchintervalinmins-must-be-0","errorCode":null,"errorMessage":"dispatchIntervalInMins must be > 0","messagePattern":"dispatchIntervalInMins must be > 0","errorType":"validation","errorClass":"InvalidConfigurationValueException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AggregateMetricsManager.java","lineNumber":55,"sourceCode":"  // Singleton instance of AggregateMetricsManager.\n  private static volatile AggregateMetricsManager instance;\n\n  // Rate limiter to control the rate of dispatching metrics.\n  private static volatile SimpleRateLimiter rateLimiter;\n\n  // Map of account name to MetricsBucket.\n  private final ConcurrentHashMap<String, MetricsBucket> buckets =\n      new ConcurrentHashMap<>();\n\n  // Scheduler for periodic dispatching of metrics.\n  private final ScheduledExecutorService scheduler;\n\n  // Private constructor to enforce singleton pattern.\n  private AggregateMetricsManager(final long dispatchIntervalInMins,\n      final int permitsPerSecond) throws InvalidConfigurationValueException {\n\n    if (dispatchIntervalInMins <= 0) {\n      throw new InvalidConfigurationValueException(\n          \"dispatchIntervalInMins must be > 0\");\n    }\n\n    if (permitsPerSecond <= 0) {\n      throw new InvalidConfigurationValueException(\n          \"permitsPerSecond must be > 0\");\n    }\n\n    rateLimiter = new SimpleRateLimiter(permitsPerSecond);\n\n    // Initialize scheduler for periodic dispatching of metrics.\n    this.scheduler = Executors.newSingleThreadScheduledExecutor(r -> {\n      Thread t = new Thread(r, \"ABFS-Aggregated-Metrics-Dispatcher\");\n      t.setDaemon(true);\n      return t;\n    });\n\n    // Schedule periodic dispatching of metrics.","sourceCodeStart":37,"sourceCodeEnd":73,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AggregateMetricsManager.java#L37-L73","documentation":"Error \"dispatchIntervalInMins must be > 0\" thrown in apache/hadoop.","triggerScenarios":"AggregateMetricsManager is configured with a dispatch interval of zero or less.","commonSituations":"See trigger scenarios.","solutions":["Set the metrics dispatch interval to a positive number of minutes.","Fix the corresponding fs.azure.metrics configuration 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"}