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

   Fixeds KAFKA-21220.
   
   Closing a dynamic consumer with `REMAIN_IN_GROUP` after the poll timer 
expires can attempt an invalid `LEAVING → PREPARE_LEAVING` transition, leaving 
the close future incomplete.
   
   The Streams group has a similar issue tracked in KAFKA-21219. This change 
aligns the consumer group's leave-heartbeat handling with the Streams group 
approach while keeping membership-state checks independent of heartbeat 
suppression.
   
   For dynamic members using `REMAIN_IN_GROUP`, skip the leave heartbeat, 
transition to `UNSUBSCRIBED`, and complete the close future without logging a 
misleading warning. Preserve heartbeat suppression in `pollOnClose()` and 
existing ShareConsumer behavior.


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