manika137 commented on code in PR #8056:
URL: https://github.com/apache/hadoop/pull/8056#discussion_r2537271997


##########
hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/WriteThreadPoolSizeManager.java:
##########
@@ -363,11 +443,18 @@ public ScheduledExecutorService getCpuMonitorExecutor() {
     return cpuMonitorExecutor;
   }
 
+  /**
+   * Checks if monitoring has started.
+   *
+   * @return true if monitoring has started, false otherwise.
+   */
+  public synchronized boolean isMonitoringStarted() {
+    return isMonitoringStarted;
+  }
+
   /**
    * Closes this manager by shutting down executors and cleaning up resources.
    * Removes the instance from the active manager map.
-   *
-   * @throws IOException if an error occurs during shutdown.

Review Comment:
   we are throwing this exception right?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to