Description
Currently there is kudu tablet leader_step_down CLI tool, but it doesn't work for the system catalog tablet. However, in various scenarios it's useful to have a CLI tool to make the current leader master stepping down and Raft election to happen for the system catalog tablet. To name just a few scenarios:
- Removing a second master when downsizing down the 2 -> 1 path (that's a second step of 3 -> 2 -> 1 migration), if the master to be removed hosts the leader replica of the system catalog. In such a case, the kudu master remove CLI isn't working since it cannot make the current leader replica of the system tablet to step down.
- Explicitly moving the system catalog leadership from one master node to another. That might be useful in various scenarios, at least for test scenarios involving ExternalMiniCluster