dlmarion commented on code in PR #4592:
URL: https://github.com/apache/accumulo/pull/4592#discussion_r1664401531


##########
core/src/main/java/org/apache/accumulo/core/spi/balancer/HostRegexTableLoadBalancer.java:
##########
@@ -330,6 +334,8 @@ public Supplier<Map<String,String>> load(TableId key) {
           }
         });
 
+    migrationLimitExceededWarningCache = 
Caffeine.newBuilder().expireAfterWrite(5, MINUTES).build();

Review Comment:
   Please see `EscalatingLogger` in 
https://github.com/apache/accumulo/blob/2.1/core/src/main/java/org/apache/accumulo/core/logging/ConditionalLogger.java.
 It's used at 
https://github.com/apache/accumulo/blob/main/server/manager/src/main/java/org/apache/accumulo/manager/TabletGroupWatcher.java#L123.
 I think this can be re-used here.



-- 
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: notifications-unsubscr...@accumulo.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to