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

Should fail the subscription when pattern is empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.6.0
    • consumer
    • None

    Description

      We have seen a case where the consumer subscribes to an empty string pattern:
      ```

      [Consumer ...  ] Subscribed to pattern:  ''

      ```

      which doesn't make any sense and usually indicate a configuration error. The `consumer.subscribe(pattern)` call should fail with illegal argument for this case.

      Attachments

        Issue Links

          Activity

            People

              zhaohaidao HaiyuanZhao
              bchen225242 Boyang Chen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: