THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
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)
- 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.
...
- Keep a version ID for each topic/partition. Delete a partition on broker startup if the partition version is outdated.
- 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.
...