THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Set message.format.version=1 on one of the brokers (broker B).
- Broker B will start to act like what described in phase 2.
- It will sends FetchRequest V2 to other brokers for replication.
- It will only see ProduceRequest/FetchRequest V1 from other brokers and clietns.
- If something goes wrong, we can do the following to rollback:
- shutdown broker B
- nuke all the data of the topics it was serving as leader before shutdown
- set set message.format.version=0
- restart the broker to let the broker replicate from leaders. At this point the data on disk will be in MessageAndOffset V0.
- shutdown broker B
In step 2, it is recommended to put only small amount of leaders on the broker, because at that point the broker needs to do down conversion for all the fetch requests.
...