ableegoldman opened a new pull request #10986:
URL: https://github.com/apache/kafka/pull/10986


   The `#onJoinPrepare` callback is not always invoked before a member 
(re)joins the group, but only once when it first enters the rebalance. This 
means that any updates or events that occur during the join phase can be lost 
in the internal state: for example, clearing the SubscriptionState (and thus 
the "ownedPartitions" that are used for cooperative rebalancing) after losing 
its memberId during a rebalance.
   
   We should reset the `needsJoinPrepare` flag inside the resetStateAndRejoin() 
method.


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to