Feature Request: Add --force
flag for MoveTables / Workflow completion
#17517
Labels
--force
flag for MoveTables / Workflow completion
#17517
Feature Description
Currently, once
movetables
has executedswitchtraffic
, and the original source keyspace gets disconnected for any reason, there is no way to force complete it, and the workflow needs to be manually cleaned up from the sidecar db's.Adding a
--force
flag to thecomplete
subcommand could allow the proper cleanup to happen even if the workflow outlives the connection to the source keyspace/database.Use Case(s)
In scenarios where data is being imported into Vitess from an external keyspace, there can be a prolonged period during which the workflow is left after
switchtraffic
, but beforecomplete
, during which the reverse replication streams are kept running.Sometimes, at that point, the original source database may end up getting removed without having fully cleaned up the Vitess side workflows. Previously, we would have cleaned up there workflows directly with the
workflow delete
command, but that is also no longer an option in more recent versions of Vitess.The text was updated successfully, but these errors were encountered: