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

   `ShareGroup.getOrMaybeCreateMember` inserts the new member into the
   group, unlike `ConsumerGroup`, which only builds it and relies on the
   replay of the member record. When a heartbeat from a new member fails
   after the member is created (e.g. the target assignment computation
   throws), the runtime does not revert the state. The member stays in the
   group without a session timeout until the coordinator reloads the
   partition, and it counts towards the group size.
   
   This patch makes `ShareGroup.getOrMaybeCreateMember` only build the
   member, as `ConsumerGroup` does, and adds a test that a failed
   heartbeat does not count towards `group.share.max.size`.
   
   


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