Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Add MoveTables GetState functionality to v19 vtctldclient #14279

Closed
Anders-PlanetScale opened this issue Oct 14, 2023 · 0 comments · Fixed by #14280
Closed

Comments

@Anders-PlanetScale
Copy link
Collaborator

Feature Description

In older versions of vitess there exists an undocumented vtctlclient sub command for MoveTables called GetState.

This prints out the current SwitchTraffic state for a MoveTables workflow. An example of what it looks like below:

MoveTables GetState keyspace.workflow
Reads Not Switched. Writes Not Switched

After talking with @mattlord it sounds like this sub-command won't be available in the current v19 vtctldclient version of MoveTables. Matt asked that I add this issue so he can look at options for bringing this functionality forward.

We discussed including the SwitchTraffic state as part of the status sub command for MoveTables.

Use Case(s)

I work with a lot of MoveTables across many different Vitess Clusters. So I frequently use GetState to remind me what the current state of a MoveTables workflow is before I take any action against the cluster. You could use the routing rules or possibly dry-run of SwitchTraffic/ReverseTraffic to obtain this information but I like how it is simple and has easy to read output.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants