hudeqi commented on code in PR #14243: URL: https://github.com/apache/kafka/pull/14243#discussion_r1310125666
########## storage/src/main/java/org/apache/kafka/storage/internals/log/RemoteIndexCache.java: ########## @@ -669,4 +689,10 @@ public static String remoteTransactionIndexFileName(RemoteLogSegmentMetadata rem return generateFileNamePrefixForIndex(remoteLogSegmentMetadata) + LogFileUtils.TXN_INDEX_FILE_SUFFIX; } + public static int estimatedEntrySize(Entry entry) { + return entry.offsetIndex.sizeInBytes() + (int) entry.offsetIndex.length() + Review Comment: Sorry, I mistook mmap and file as two different things. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org