--- Cancel
Tear down a workflow where no traffic has been switched
Command #
MoveTables/Reshard -- [--keep_data] [--keep_routing_rules] Cancel <targetKs.workflow>
Description #
Cancel
can be used if a workflow was created in error or was misconfigured and you prefer to create a new workflow instead of fixing this one. Cancel can only be called if no traffic has been switched. It removes vreplication-related artifacts like rows from vreplication and copy_state tables in the side-car _vt
database and routing rules and blacklisted tables from the topo and, by default, the target tables/shards from the target keyspace.
Parameters #
--keep_data #
optional
default false
Usually, the target data (tables or shards) are deleted by Cancel. If this flag is used with MoveTables, target tables will not be deleted and, with Reshard, target shards will not be dropped.
--keep_routing_rules #
optional
default false
Usually, any routing rules added in the target keyspace are removed by Cancel. If this flag is used the routing rules in the target keyspace will be left in place.