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

Coordinator should not allow empty groupIds

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.0.0
    • 0.9.0.0
    • None
    • None

    Description

      The coordinator currently allows consumer groups with empty groupIds, but there probably aren't any cases where this is actually a good idea and it tends to mask problems where different groups have simply not configured a groupId. To address this, we can add a new error code, say INVALID_GROUP_ID, which the coordinator can return when it encounters an empty groupID. We should also make groupId a required property in consumer configuration and enforce that it is non-empty.

      It's a little unclear whether this change would have compatibility concerns. The old consumer will fail with an empty groupId (because it cannot create the zookeeper paths), but other clients may allow it.

      Attachments

        Issue Links

          Activity

            People

              hachikuji Jason Gustafson
              hachikuji Jason Gustafson
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: