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

VerifiableConsumer with --max-messages doesn't exit

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.0
    • Component/s: None
    • Labels:
      None

      Description

      If I run kafka-verifiable-consumer.sh --max-messages=N I expect the tool to consume N messages and then exit. It will actually consume as many messages as are in the topic and then block.

      The problem is that although the max messages will cause the loop in onRecordsReceived() to break, the loop in run() will just call onRecordsReceived() again.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tombentley Tom Bentley
                Reporter:
                tombentley Tom Bentley
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: