Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-12983

onJoinPrepare is not always invoked before joining the group

    XMLWordPrintableJSON

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              ableegoldman A. Sophie Blee-Goldman
              ableegoldman A. Sophie Blee-Goldman
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: