jsancio commented on a change in pull request #11084: URL: https://github.com/apache/kafka/pull/11084#discussion_r672716678
########## File path: raft/src/main/java/org/apache/kafka/raft/KafkaRaftClient.java ########## @@ -302,17 +302,13 @@ private void onUpdateLeaderHighWatermark( } private void updateListenersProgress(long highWatermark) { - updateListenersProgress(listenerContexts, highWatermark); - } - - private void updateListenersProgress(List<ListenerContext> listenerContexts, long highWatermark) { for (ListenerContext listenerContext : listenerContexts) { listenerContext.nextExpectedOffset().ifPresent(nextExpectedOffset -> { if (nextExpectedOffset < log.startOffset() && nextExpectedOffset < highWatermark) { SnapshotReader<T> snapshot = latestSnapshot().orElseThrow(() -> new IllegalStateException( String.format( "Snapshot expected since next offset of %s is %s, log start offset is %s and high-watermark is %s", - listenerContext.listener.getClass().getTypeName(), + listenerContext.listenerName(), Review comment: Note that all of the change to the `raft` module are cosmetic mainly to improving logging. -- 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