You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "José Armando García Sancio (Jira)" <ji...@apache.org> on 2023/06/09 13:54:00 UTC

[jira] [Created] (KAFKA-15076) KRaft should prefer snapshots when listeners are at the start of the log

José Armando García Sancio created KAFKA-15076:
--------------------------------------------------

             Summary: KRaft should prefer snapshots when listeners are at the start of the log
                 Key: KAFKA-15076
                 URL: https://issues.apache.org/jira/browse/KAFKA-15076
             Project: Kafka
          Issue Type: Improvement
          Components: kraft
            Reporter: José Armando García Sancio
            Assignee: José Armando García Sancio
             Fix For: 3.6.0


If the KRaft log has a segment/record batch  at offset 0 it will send that batch in Listener.handleCommit even if there is a snapshot that contains that record batch. It is more efficient to have the Listener start with a handleSnapshot if a snapshot exist.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)