nandini12396 commented on code in PR #21089:
URL: https://github.com/apache/kafka/pull/21089#discussion_r2644793041


##########
storage/src/main/java/org/apache/kafka/storage/internals/log/RemoteIndexCache.java:
##########
@@ -138,10 +166,21 @@ public void resizeCacheSize(long 
remoteLogIndexFileCacheSize) {
         }
     }
 
-    private Cache<Uuid, Entry> initEmptyCache(long maxSize) {
-        return Caffeine.newBuilder()
+    private Cache<Uuid, Entry> initEmptyCache(long maxSize, long ttlMs, Ticker 
ticker) {
+        Caffeine<Uuid, Entry> builder = Caffeine.newBuilder()
                 .maximumWeight(maxSize)
-                .weigher((Uuid key, Entry entry) -> (int) entry.entrySizeBytes)
+                .recordStats()

Review Comment:
   yes, makes sense! Done, thanks



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

Reply via email to