satishd commented on code in PR #13561: URL: https://github.com/apache/kafka/pull/13561#discussion_r1213112946
########## core/src/main/scala/kafka/log/UnifiedLog.scala: ########## @@ -154,16 +154,41 @@ class UnifiedLog(@volatile var logStartOffset: Long, locally { initializePartitionMetadata() updateLogStartOffset(logStartOffset) + updateLocalLogStartOffset(math.max(logStartOffset, localLog.segments.firstSegmentBaseOffset.getOrElse(0L))) + if (!remoteLogEnabled()) + logStartOffset = localLogStartOffset() Review Comment: We already set the localLogStartOffset as max of passed logStartOffset and the first segment's base offset. When remote log is not enabled, `logStartOffset` is set as `localLogStartOffset` as computed above. -- 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