priyeshkaratha commented on code in PR #10426:
URL: https://github.com/apache/ozone/pull/10426#discussion_r3450217982


##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/DataNodeMetricsService.java:
##########
@@ -117,12 +119,7 @@ public void startTask() {
       return;
     }
     
-    // Check rate limit
-    if (System.currentTimeMillis() - lastCollectionEndTime.get() < 
minimumApiDelayMs) {
-      LOG.debug("Rate limit active, skipping collection (delay: {}ms)", 
minimumApiDelayMs);
-      isRunning.set(false);
-      return;
-    }

Review Comment:
   It removed mistakenly while testing the changes. Added it back



##########
hadoop-ozone/recon/src/main/java/org/apache/hadoop/ozone/recon/api/DataNodeMetricsService.java:
##########


Review Comment:
   added ratelimit check



-- 
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