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

   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. A static member that replaces itself with the same subscription 
does
   not bump the group epoch, so the outdated target assignment is 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.
   
   Merge the Stable, PreparingRebalance and CompletingRebalance upgrade tests 
into
   parameterized tests for new and static members, and add tests for upgrading a
   classic group at generation 0 by a static member.
   
   


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