You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by GitBox <gi...@apache.org> on 2021/07/28 23:34:27 UTC

[GitHub] [kafka] lbradstreet commented on a change in pull request #11140: MINOR: log epoch and offset truncation similarly to HWM truncation

lbradstreet commented on a change in pull request #11140:
URL: https://github.com/apache/kafka/pull/11140#discussion_r678720053



##########
File path: core/src/main/scala/kafka/server/AbstractFetcherThread.scala
##########
@@ -265,6 +265,7 @@ abstract class AbstractFetcherThread(name: String,
       Errors.forCode(leaderEpochOffset.errorCode) match {
         case Errors.NONE =>
           val offsetTruncationState = getOffsetTruncationState(tp, leaderEpochOffset)
+          info(s"Truncating partition $tp to leader epoch and offset $leaderEpochOffset")

Review comment:
       Good idea. I pushed up this change and I did the same thing with the hwm based truncation too.




-- 
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-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org