squah-confluent opened a new pull request, #24421:
URL: https://github.com/apache/kafka/pull/24421

   When a classic group is upgraded to a consumer group,
   ConsumerGroup#fromClassicGroup sets the group epoch and the target
   assignment epoch to the classic generation and takes the members' last
   assignments as the target assignment. A rebalancing classic group is
   waiting for a new assignment, so this target assignment is outdated. The
   upgrade relied on the joining member to bump the group epoch and trigger
   a new assignment. In two scenarios, nothing bumps the group epoch: a
   static member that replaces itself with the same subscription, and a new
   member that subscribes with a regex that resolves to no topics. The
   outdated target assignment is then treated as current. When the classic
   group is at generation 0, the member is given epoch 0, which is reserved
   for joining members (KAFKA-21581).
   
   Bump the group epoch when the classic group is rebalancing, so that a
   new target assignment is computed. The target assignment epoch and the
   member epochs stay at the classic generation. In CompletingRebalance,
   the members still hold the previous generation's assignment, but they
   received the new generation in their JoinGroup responses and send it in
   later SyncGroup and Heartbeat requests.
   
   When the classic group is at generation 0, start the upgraded group with
   an empty target assignment at epoch 1, analogous to KAFKA-20268 for new
   groups (KAFKA-21584).
   
   Merge the Stable, PreparingRebalance and CompletingRebalance upgrade
   tests into parameterized tests for new and static members. Add tests for
   upgrading a classic group at generation 0 by a static member, for
   upgrades by a new member that subscribes with a regex that resolves to
   no topics.
   
   Reviewers: David Jacot <[email protected]>
   
   


-- 
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]

Reply via email to