cmccabe commented on code in PR #13643:
URL: https://github.com/apache/kafka/pull/13643#discussion_r1273720728


##########
raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java:
##########
@@ -2394,6 +2394,11 @@ public Optional<OffsetAndEpoch> latestSnapshotId() {
         return log.latestSnapshotId();
     }
 
+    @Override
+    public long logEndOffset() {
+        return log.endOffset().offset;
+    }

Review Comment:
   > This is not correct in all cases. The leader can have records in the base 
accumulator that have not been sent to the log.
   
   I don't care about that, though, since I only plan on using this method when 
the leader becomes active. We will not use it after that.



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