Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-14618

Off by one error in generated snapshot IDs causes misaligned fetching

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • None
    • 3.4.0
    • None
    • None

    Description

      We implemented new snapshot generation logic here: https://github.com/apache/kafka/pull/12983. A few days prior to this patch getting merged, we had changed the `RaftClient` API to pass the exclusive offset when generating snapshots instead of the inclusive offset: https://github.com/apache/kafka/pull/12981. Unfortunately, the new snapshot generation logic was not updated accordingly. The consequence of this is that the state on replicas can get out of sync. In the best case, the followers fail replication because the offset after loading a snapshot is no longer aligned on a batch boundary.

      Attachments

        Issue Links

          Activity

            People

              jsancio José Armando García Sancio
              hachikuji Jason Gustafson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: