You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
create table t1(id int NOT NULL auto_increment, primary key(id));
create table t2(id int NOT NULL auto_increment, primary key(id));
This should fail saying the table is not found in keyspace2's vschema.
Check to see if the workflow was created, it should not have been.
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
Debian GNU/Linux 10
Linux 5.15.0-1039-aws
x86_64
Log Fragments
No response
The text was updated successfully, but these errors were encountered:
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: