dajac opened a new pull request, #24187:
URL: https://github.com/apache/kafka/pull/24187

   `ConsumerGroup.fromClassicGroup` parses every member's subscription
   with the selected protocol of the classic group. When the group is in
   PreparingRebalance and has no selected protocol yet, this throws
   `NoSuchElementException`. When a member that does not support the
   selected protocol has joined, this throws `IllegalArgumentException`.
   Both are returned as UNKNOWN_SERVER_ERROR, which is fatal for the new
   consumer that triggers the conversion during an online upgrade.
   
   This patch computes the conversion protocol once: the selected protocol
   if every member supports it, otherwise the protocol that
   `selectProtocol` would choose for the next generation. A group without
   members has no protocol to parse and keeps converting as before. Three
   `GroupMetadataManagerTest` tests cover the two states and the group
   without members, and two `ConsumerProtocolMigrationTest` tests reproduce
   the two states with a cluster.
   
   


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