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

Fix StateRestoreListener To Use Correct Batch Ending Offset

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.11.0.0, 1.0.0
    • 1.0.1, 1.1.0
    • streams
    • None

    Description

      StateRestoreListener#restoreBatchCompleted takes the nextPosition longĀ for the batch ending offset, but the nextPosition is not correct, it should be the offset of the latest restored offset, but nextPosition is the offset of the first not restored offset.

      We can't automatically use nextPosition - 1 as this could be a commit marker.

      Attachments

        Issue Links

          Activity

            People

              bbejeck Bill Bejeck
              bbejeck Bill Bejeck
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: