jsancio commented on code in PR #14141:
URL: https://github.com/apache/kafka/pull/14141#discussion_r1287811134


##########
raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java:
##########
@@ -1039,6 +1054,14 @@ private FetchResponseData tryCompleteFetchRequest(
         }
     }
 
+    private static boolean 
isPartitionTruncated(FetchResponseData.PartitionData partitionResponseData) {
+        FetchResponseData.EpochEndOffset divergingEpoch = 
partitionResponseData.divergingEpoch();
+        FetchResponseData.SnapshotId snapshotId = 
partitionResponseData.snapshotId();
+
+        return divergingEpoch.epoch() != -1 || divergingEpoch.endOffset() != 
-1 ||

Review Comment:
   Done.



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

Reply via email to