Kafka
  1. Kafka
  2. KAFKA-241

ConsumerIterator throws a IllegalStateException after a ConsumerTimeout occurs

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.7
    • Fix Version/s: 0.7.1
    • Component/s: None
    • Labels:

      Description

      Please find the test case attached.

      After a timeout occurs (property consumer.timeout.ms > 0 ) the consumerIterator throws an IllegalStateException.

      The work around seems to be to recreate the MessageStream an issue a new Iterator.

      1. kafka-241.patch
        2 kB
        Jun Rao
      2. consumerIteratorTestCase.java
        3 kB
        Patricio Echague

        Activity

        Hide
        Jun Rao added a comment -

        Patch attached.

        Show
        Jun Rao added a comment - Patch attached.
        Hide
        Jun Rao added a comment -

        Added a unit test that exposes the bug and a fix.

        Show
        Jun Rao added a comment - Added a unit test that exposes the bug and a fix.
        Hide
        Joel Koshy added a comment -

        +1

        Show
        Joel Koshy added a comment - +1
        Hide
        Jun Rao added a comment -

        Thanks for the review. Just committed this.

        Show
        Jun Rao added a comment - Thanks for the review. Just committed this.

          People

          • Assignee:
            Jun Rao
            Reporter:
            Patricio Echague
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development