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

KafkaConsumer with auto commit enabled gets stuck when killed after broker is dead

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.10.0.0
    • Fix Version/s: 0.10.0.1
    • Component/s: None
    • Labels:
      None

      Description

      KafkaConsumer with auto commit enabled gets stuck when killed after broker is dead.

      • KafkaConsumer on close tries to close coordinator.
      • Coordinator, if auto commit is enabled, tries to commit offsets synchronously before closing.
      • While trying to synchronously commit offsets, coordinator checks if coordinator is alive by sending GroupCoordinatorRequest. As brokers are dead, this returns NoAvailableBrokersException, which is a retriable exception.
      • Coordinator ready check enters into an infinite loop as it keeps retrying to discover group coordinator.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                singhashish Ashish Singh
                Reporter:
                singhashish Ashish Singh
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: