{"record":{"id":"e12e5d02faeab6b9","repo":"apache/hadoop","slug":"failed-to-initialize-aggregatemetricsmanager","errorCode":null,"errorMessage":"Failed to initialize AggregateMetricsManager","messagePattern":"Failed to initialize AggregateMetricsManager","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AggregateMetricsManager.java","lineNumber":106,"sourceCode":"   * Get the singleton instance of AggregateMetricsManager.\n   *\n   * @param dispatchIntervalInMins Interval in minutes for dispatching metrics.\n   * @param permitsPerSecond       Rate limit for dispatching metrics.\n   * @return Singleton instance of AggregateMetricsManager.\n   */\n  public static AggregateMetricsManager getInstance(final long dispatchIntervalInMins,\n      final int permitsPerSecond) {\n    if (instance != null) {\n      return instance;\n    }\n\n    synchronized (AggregateMetricsManager.class) {\n      if (instance == null) {\n        try {\n          instance = new AggregateMetricsManager(\n              dispatchIntervalInMins, permitsPerSecond);\n        } catch (InvalidConfigurationValueException e) {\n          throw new RuntimeException(\n              \"Failed to initialize AggregateMetricsManager\", e);\n        }\n      }\n      return instance;\n    }\n  }\n\n  /**\n   * Register an AbfsClient with the manager.\n   * @param account Account name.\n   * @param abfsClient AbfsClient instance.\n   */\n  public void registerClient(String account, AbfsClient abfsClient) {\n    if (StringUtils.isEmpty(account) || abfsClient == null) {\n      return;\n    }\n\n    buckets.computeIfAbsent(account,","sourceCodeStart":88,"sourceCodeEnd":124,"githubUrl":"https://github.com/apache/hadoop/blob/2add9630210752f88ceb1bb74eb65e37bf41da8e/hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AggregateMetricsManager.java#L88-L124","documentation":"Error \"Failed to initialize AggregateMetricsManager\" thrown in apache/hadoop.","triggerScenarios":"AggregateMetricsManager fails to start due to bad metrics configuration or sink setup.","commonSituations":"See trigger scenarios.","solutions":["Inspect the underlying cause in the logs (configuration or sink initialization error) and correct it.","Verify all fs.azure.metrics.* settings and reachable metric sinks."],"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"}