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

Consumer offsets auto-commit before processing finishes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 0.8.1.1
    • None
    • consumer
    • None

    Description

      In a loop like this,

      for (message <- kafkaStream)

      { process(message) }

      The consumer can commit offsets for the next message while "process" is running. If the program crashes during "process", the next run will pick up from the next message. The message in flight at the time of the crash will never actually finish processing. Instead, I would have expected the high level consumer to deliver messages at least once.

      Attachments

        Activity

          People

            nehanarkhede Neha Narkhede
            gian Gian Merlino
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: