showuon commented on code in PR #12347: URL: https://github.com/apache/kafka/pull/12347#discussion_r920044770
########## core/src/main/scala/kafka/log/LogLoader.scala: ########## @@ -424,9 +432,11 @@ class LogLoader( // we had an invalid message, delete all remaining log warn(s"Corruption found in segment ${segment.baseOffset}," + s" truncating to offset ${segment.readNextOffset}") - removeAndDeleteSegmentsAsync(unflushed.toList) + removeAndDeleteSegmentsAsync(unflushedIter.toList) Review Comment: Good call! Updated. -- 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