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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 0.10.0.0
    • 0.10.0.1
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: