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

Add a listener to ZookeeperConsumerConnector to get notified on rebalance events

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.7, 0.8.0
    • Fix Version/s: None
    • Component/s: core
    • Labels:
      None

      Description

      A sample use-case

      In our scenario we partition events by userid and then apply these to some kind of state machine, that modifies the actual state of a user. So events trigger state transitions. In order to avoid the need of loading user's state upon each event processed, we cache that. But if a user's partition is moved to another consumer and then back to the previous consumer we have stale caches and hell breaks loose. I guess the same kind of problem occurs in other scenarios like counting numbers by user, too.

        Attachments

        1. KAFKA-345_2014-11-15_01:00:55.patch
          25 kB
          Jiangjie Qin
        2. KAFKA-345_2014-11-15_01:19:56.patch
          31 kB
          Jiangjie Qin
        3. KAFKA-345_2014-11-17_17:42:42.patch
          41 kB
          Jiangjie Qin
        4. KAFKA-345.patch
          14 kB
          Jiangjie Qin
        5. KAFKA-345.patch
          11 kB
          Peter Romianowski

          Issue Links

            Activity

              People

              • Assignee:
                becket_qin Jiangjie Qin
                Reporter:
                peter.romianowski Peter Romianowski
              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: