showuon commented on code in PR #12975:
URL: https://github.com/apache/kafka/pull/12975#discussion_r1045180998


##########
raft/src/main/java/org/apache/kafka/raft/FollowerState.java:
##########
@@ -169,4 +184,26 @@ public void close() {
             fetchingSnapshot.get().close();
         }
     }
+
+    private void logHighWatermarkUpdate(
+        Optional<LogOffsetMetadata> oldHighWatermark,
+        Optional<LogOffsetMetadata> newHighWatermark
+    ) {
+        if (!oldHighWatermark.equals(newHighWatermark)) {
+            if (oldHighWatermark.isPresent()) {
+                log.trace(
+                    "High watermark set to {} from {} for epoch {}",
+                    newHighWatermark,
+                    oldHighWatermark.get(),
+                    epoch
+                );
+            } else {
+                log.info(
+                    "High watermark set to {} for the firs time for epoch {}",

Review Comment:
   typo: firs[t]



-- 
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