DropSources
Cleans up after a MoveTables and Reshard workflow
Command #
DropSources [-dry_run] [-rename_tables] [-keep_data] <keyspace.workflow>
Description #
Once SwitchWrites has been run DropSources cleans up the source resources by deleting the source tables for a MoveTables workflow or source shards for a Reshard workflow. It also cleans up other artifacts of the workflow, deleting forward and reverse replication streams and blacklisted tables.
Warning: This command actually deletes data. We recommend that you run this with the -dry_run parameter first and reads its output so that you know which actions will be performed.
Parameters #
-rename_tables #
optional
default all
-dry-run #
optional
default false
-keep_data #
optional
default false
Usually, the source data (tables or shards) are deleted by Complete. If this flag is used, for MoveTables, source tables will not be deleted, for Reshard, source shards will not be dropped.
keyspace.workflow #
mandatory