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

Should fail the subscription when pattern is empty

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.0
    • Component/s: consumer
    • Labels:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: