Vitess sees the wrong tablet as master
Debug common issues with Vitess
Vitess sees the wrong tablet as master #
If you do a failover manually (not through Vitess), you’ll need to tell Vitess which tablet corresponds to the new master MySQL. Until then, writes will fail since they’ll be routed to a read-only replica (the old master). Use the TabletExternallyReparented
command to tell Vitess the new master tablet for a shard.
Tools like Orchestrator can be configured to call this automatically when a failover occurs. See our sample orchestrator.conf.json for an example of this.