private synchronized long nextOffset() {
            return nextOffset;
        }
Get the last acked offset, which is one greater than the offset of the
last record which was acked by the state machine.
raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java