Forest0923 commented on code in PR #19961:
URL: https://github.com/apache/kafka/pull/19961#discussion_r2165275363


##########
storage/src/main/java/org/apache/kafka/storage/internals/log/TimeIndex.java:
##########
@@ -67,19 +70,23 @@ public TimeIndex(File file, long baseOffset, int 
maxIndexSize, boolean writable)
 
         this.lastEntry = lastEntryFromIndexFile();
 
-        log.debug("Loaded index file {} with maxEntries = {}, maxIndexSize = 
{}, entries = {}, lastOffset = {}, file position = {}",
-            file.getAbsolutePath(), maxEntries(), maxIndexSize, entries(), 
lastEntry.offset, mmap().position());
+        inLock(lock, () -> {

Review Comment:
   I don’t think it’s necessary in the constructor, so I’ll remove it.



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

Reply via email to