chia7712 commented on code in PR #16932: URL: https://github.com/apache/kafka/pull/16932#discussion_r1724295894
########## core/src/main/scala/kafka/log/UnifiedLog.scala: ########## @@ -1601,7 +1601,7 @@ class UnifiedLog(@volatile var logStartOffset: Long, shouldDelete } - deleteOldSegments(shouldDelete, RetentionSizeBreach(this, remoteLogEnabled())) + deleteOldSegments(shouldDelete, RetentionSizeBreach(this, remoteLogEnabledAndRemoteCopyEnabled())) } private def deleteLogStartOffsetBreachedSegments(): Int = { Review Comment: If remote copy is disabled, we should not delete segments according to local LSO. @showuon @brandboat WDYT? -- 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