Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Question C1. How to deal with repeated topic deletion/creation? A broker can be down for a long time during which a topic can be deleted and recreated. When the broker comes up, the topic it has locally may not match the content of the newly created topic. There are a couple of ways of dealing with this. (1)

  1. Simply let the broker with the outdated topic become a follower and figure out the right offset from which it can sync up with the leader.

...

  1. Keep a version ID for each topic/partition. Delete a partition on broker startup if the partition version is outdated.
  2. Queue up the close replica state change in the ZkQueue, so the broker can simply read the ZkQueue on start and delete partitions accordingly
D. Handling controller failure.

...