You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "chickenchickenlove (via GitHub)" <gi...@apache.org> on 2026/02/28 09:07:13 UTC

[PR] KAFKA-20169: Support static membership for Kafka Streams with the streams rebalance protocol at Client Side. [kafka]

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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-20169: Support static membership for Kafka Streams with the streams rebalance protocol at Client Side. [kafka]

Posted by "lucasbru (via GitHub)" <gi...@apache.org>.
lucasbru commented on PR #21603:
URL: https://github.com/apache/kafka/pull/21603#issuecomment-4716066608

   Seems likle https://github.com/apache/kafka/pull/22559 replaced this


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-20169: Support static membership for Kafka Streams with the streams rebalance protocol at Client Side. [kafka]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #21603:
URL: https://github.com/apache/kafka/pull/21603#issuecomment-4697563075

   This PR is being marked as stale since it has not had any activity in 90 days. If you
   would like to keep this PR alive, please leave a comment asking for a review. If the PR has 
   merge conflicts, update it with the latest from the base branch.
   <p>
   If you are having difficulty finding a reviewer, please reach out on the 
   [mailing list](https://kafka.apache.org/contact).
   <p>
   If this PR is no longer valid or desired, please feel free to close it. If no activity
   occurs in the next 30 days, it will be automatically closed.


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-20169: Support static membership for Kafka Streams with the streams rebalance protocol at Client Side. [kafka]

Posted by "chickenchickenlove (via GitHub)" <gi...@apache.org>.
chickenchickenlove commented on PR #21603:
URL: https://github.com/apache/kafka/pull/21603#issuecomment-3976726254

   @m1a2st , Hi!
   
   I’m currently working on implementing KAFKA-20169, which adds Static Membership support for StreamsGroup.
   
   During the client-side work, I realized I had to implement part of what’s being discussed in [KIP-1284](https://cwiki.apache.org/confluence/display/KAFKA/KIP-1284+Introduce+CloseOptions.DEFAULT+for+Kafka+Streams). Specifically, for static members, the client should be able to leave with epoch `-2`, but at the moment it always leaves with `-1`. Because of that, I had to adjust a portion of the code related to `close(CloseOptions)`.
   
   To complete this PR, I think there are a couple of possible approaches:
   - I can remove the `CloseOptions`-related changes from this PR and keep it focused only on the `group.instance.id` / static membership parts. If leaving with epoch `-2` is needed for integration tests, I could rebase and add it later after KIP-1284 is implemented.
   - Alternatively, I can include a partial implementation of the `CloseOptions` changes in this PR, and you could follow up with the remaining parts based on the direction you prefer for KIP-1284.
   
   I want to be respectful of the PR that will come out of KIP-1284. 
   If you could let me know which direction you’d prefer, I’m happy to align with that. 
   And if there’s a better approach than the options above, I’m very open to suggestions!
   
   Thanks in advance for your guidance. 🙇‍♂️ 


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-20169: Support static membership for Kafka Streams with the streams rebalance protocol at Client Side. [kafka]

Posted by "chickenchickenlove (via GitHub)" <gi...@apache.org>.
chickenchickenlove commented on PR #21603:
URL: https://github.com/apache/kafka/pull/21603#issuecomment-4059813116

   @m1a2st 
   Thanks for your comments and sorry for late! 
   Sounds great. Please let me know when the work is done.
   Also, if you’d like my review as well, feel free to mention me anytime. I’d be happy to take a look 🙇‍♂️ 


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-20169: Support static membership for Kafka Streams with the streams rebalance protocol at Client Side. [kafka]

Posted by "m1a2st (via GitHub)" <gi...@apache.org>.
m1a2st commented on PR #21603:
URL: https://github.com/apache/kafka/pull/21603#issuecomment-3990598294

   Hello @chickenchickenlove,
   
   I think we can wait until KIP-1284 is approved. In the meantime, I’ll complete the implementation without static member support first, and then you can follow up with the static member–related logic afterward. That might make the development process smoother overall.
   
   It’s great to connect with you as well 😊


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KAFKA-20169: Support static membership for Kafka Streams with the streams rebalance protocol at Client Side. [kafka]

Posted by "lucasbru (via GitHub)" <gi...@apache.org>.
lucasbru closed pull request #21603: KAFKA-20169: Support static membership for Kafka Streams with the streams rebalance protocol at Client Side.
URL: https://github.com/apache/kafka/pull/21603


-- 
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: jira-unsubscribe@kafka.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org