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



##########
File path: core/src/main/scala/kafka/server/AbstractFetcherThread.scala
##########
@@ -247,7 +247,7 @@ abstract class AbstractFetcherThread(name: String,
         val highWatermark = partitionState.fetchOffset
         val truncationState = OffsetTruncationState(highWatermark, 
truncationCompleted = true)
 
-        info(s"Truncating partition $tp to local high watermark 
$highWatermark")
+        info(s"Truncating partition $tp to $truncationState due to local high 
watermark $highWatermark")

Review comment:
       Done. Updated log messages:
   ```
   Truncating partition topic1-0 with TruncationState(offset=0, completed=true) 
due to local high watermark 0
   Truncating partition topic1-0 with TruncationState(offset=5, completed=true) 
due to leader epoch and offset EpochEndOffset(errorCode=0, partition=0, 
leaderEpoch=0, endOffset=5)
   ```




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to