[ 
https://issues.apache.org/jira/browse/KAFKA-12983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17421819#comment-17421819
 ] 

A. Sophie Blee-Goldman commented on KAFKA-12983:
------------------------------------------------

I'm pretty sure if affects all versions. I guess it wasn't that bad of a bug 
prior to cooperative rebalancing though, so maybe the affects version should be 
2.4?

> onJoinPrepare is not always invoked before joining the group
> ------------------------------------------------------------
>
>                 Key: KAFKA-12983
>                 URL: https://issues.apache.org/jira/browse/KAFKA-12983
>             Project: Kafka
>          Issue Type: Bug
>          Components: consumer
>    Affects Versions: 2.7.0
>            Reporter: A. Sophie Blee-Goldman
>            Assignee: A. Sophie Blee-Goldman
>            Priority: Blocker
>             Fix For: 2.7.2, 2.8.1, 3.0.0
>
>
> As the title suggests, 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 message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to