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

GlobalKTable never finishes restoring when consuming transactional messages

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 0.11.0.1, 1.0.0
    • 0.11.0.2, 1.0.1, 1.1.0
    • streams
    • None
    • Linux

    Description

      When creating a GlobalKTable from a topic that contains messages that were produced in a transaction the GlobalStreamThread never finishes restoring the table. This appears to be because the `GlobalStateManagerImpl#restoreState` method fails to take into account the transaction markers in it's calculation of it's offset when reading messages and so never reaches the high watermark for the topic it is restoring.

      To demonstrate the issue produce a few messages in a transaction to a topic, then attempt to restore a GlobalKTable from that topic, the store will never complete restoring.

      Attachments

        Issue Links

          Activity

            People

              alexgood Alex Good
              alexgood Alex Good
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: