-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Bug Report: Failed MoveTables Create still creates routing rules #13589
Labels
Comments
Anders-PlanetScale
added
Type: Bug
Needs Triage
This issue needs to be correctly labelled and triaged
labels
Jul 21, 2023
Confirmed on main with the following test case:
|
mattlord
added
Component: VReplication
and removed
Needs Triage
This issue needs to be correctly labelled and triaged
labels
Jul 21, 2023
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview of the Issue
Routing rules are created before a workflow is created and if the workflow is not created for some reason the routing rules are not cleaned up and left in place.
Reproduction Steps
Create a two keyspace cluster with a keyspace1 and keyspace2, keyspace2 should be a 2 or more shard keyspace.
Create two tables in keyspace1.
vtctlclient GetRoutingRules
5. Attempt to create a MoveTables workflow that moves t1 not t2 to keyspace2.
vtctlclient MoveTables -- --source keyspace1 --tables="t1" Create keyspace2.test
This should fail saying the table is not found in keyspace2's vschema.
vtctlclient workflow keyspace2 listall
7. Check the RoutingRules.
vtctlclient GetRoutingRules
8. You should now see routing rules in place for the MoveTables workflow that was not created.
Binary Version
This was tested on a v15 image, but I believe the behavior should be the same on v16 and v17. `Version: 15.0.1-SNAPSHOT (Git revision cb465027e8811e9a4dbf4eb54b90cc1cf1dcc0ac branch 'main') built on Wed Jul 5 14:35:51 UTC 2023 by vitess@buildkitsandbox using go1.19.4 linux/amd64`
Operating System and Environment details
Log Fragments
No response
The text was updated successfully, but these errors were encountered: