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

throw NoOffsetForPartitionException once for all assigned partitions from poll

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.2.0
    • 0.11.0.0
    • clients
    • None

    Description

      KafkaConsumer.poll() will currently throw NoOffsetForPartitionException if reset strategy is "none" and there are no defined offsets.

      problem is the exception will only be thrown for the 1st such partition encountered.

      since a single consumer can be the owner of thousands of partitions this results in a lot of exception that need to be caught and handled.

      its possible to throw the exception once for all such TopicPartitions without any user-visible API changes.

      Attachments

        Activity

          People

            radai Radai Rosenblatt
            radai Radai Rosenblatt
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: