noob-se7en commented on code in PR #16339:
URL: https://github.com/apache/pinot/pull/16339#discussion_r2211337749


##########
pinot-core/src/main/java/org/apache/pinot/core/data/manager/realtime/RealtimeConsumptionRateManager.java:
##########
@@ -59,6 +64,7 @@ public class RealtimeConsumptionRateManager {
 
   private static final String SERVER_CONSUMPTION_RATE_METRIC_KEY_NAME =
       ServerMeter.REALTIME_ROWS_CONSUMED.getMeterName();
+  private static final AtomicReference<AsyncMetricEmitter> 
ASYNC_METRIC_EMITTER_REF = new AtomicReference<>();

Review Comment:
   Actually I was not aware of 
`com.google.common.util.concurrent.RateLimiter.setRate(double 
permitsPerSecond)`. So there's a method which can be used to just update the 
rateLimit. 
   I will just use this.



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