chickenchickenlove opened a new pull request, #21603: URL: https://github.com/apache/kafka/pull/21603
### Description This PR adds client-side support for static membership in the Streams group protocol, aligned with [KIP-1071](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1071%3A+Streams+Rebalance+Protocol). ### What changed - Allowed `group.instance.id` with `group.protocol=streams` in Streams config validation. - Wired `group.instance.id` into `StreamsMembershipManager` creation path. - Updated Streams close flow to honor `CloseOptions.GroupMembershipOperation` and support static member leave epoch handling (`-2` for `remain-in-group` path). - Added `UNRELEASED_INSTANCE_ID` handling in `StreamsGroupHeartbeatRequestManager` as a fatal error path. - Added/updated unit tests: - `StreamsMembershipManagerTest` for static member close/leave epoch behavior. - `StreamsConfigTest` for `group.protocol=streams` + `group.instance.id` acceptance. ### Scope - Client-side changes only. - Client↔Server integration tests are out of scope for this PR (server-side is in a separate PR). - There is a mismatch in the Javadocs for the `close()` method here. This will be aligned in [KIP-1284](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1284+Introduce+CloseOptions.DEFAULT+for+Kafka+Streams). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
