Canceling the migration process
You can cancel the db_migrate script when the migration is running, but there are a few important considerations that you need to be aware of.
About this task
When the db_migrate script runs, it starts many subordinate processes. The
migration does not run as one large transaction where everything is migrated or nothing is migrated.
Rather, each table is migrated separately. If multiple threads are used, then each thread is a
separate, independent transaction. If you force stop a migration, note the following important
considerations:
- Any tables that were copied before you stopped the command are on the target host.
- A table that was being copied will be in an indeterminate state.
- For threads that have already finished, the data is committed and exists in the target table.
- For threads that were running when you stopped the process, their data is rolled back (discarded), and the discarded rows might be consuming space in the target table.