What are the steps to take after an unplanned failover?
In order to avoid creating orphaned VTTablets you will need to follow the steps below:
- Stop the VTTablets
- Delete the old VTTablet records
- Create the new keyspace
- Restart the VTTablets that are pointed at the new keyspace
- Use TabletExternallyReparented to inform Vitess of the current primary
- Recursively delete the old keyspace