Skip to content

KAFKA-20889: reject empty group.instance.id values in Kafka Streams. - #23099

Open
chickenchickenlove wants to merge 1 commit into
apache:trunkfrom
chickenchickenlove:KAFKA-20889
Open

KAFKA-20889: reject empty group.instance.id values in Kafka Streams.#23099
chickenchickenlove wants to merge 1 commit into
apache:trunkfrom
chickenchickenlove:KAFKA-20889

Conversation

@chickenchickenlove

Copy link
Copy Markdown
Contributor

Introduction

ConsumerConfig only permits non-empty group.instance.id values, and a regular KafkaConsumer rejects an empty value with a ConfigException.

Kafka Streams currently appends the stream thread index before consumer validation. As a result:

  • group.instance.id="" → "-1", "-2", ...

These derived values pass validation and enable static membership. Multiple application instances may then generate the same instance IDs.

Changes

  • StreamsConfig throws an ConfigException when group.instance.id is empty string.
  • Add unit tests.

@github-actions github-actions Bot added triage PRs from the community streams small Small PRs labels Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

small Small PRs streams triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant