View a markdown version of this page

move_info - Amazon Aurora

move_info

The move_info system table has one row for each data movement job of a database cluster group for Aurora.

Purpose

Use this table to follow a move of a collocation from one member cluster to another and to read the status of the move. A job's row stays readable after the job ends, so you can confirm a success or read a failure reason. Jobs publish progress periodically, so a read shows the last published state.

The table is read-only. You start, finish, and stop jobs with the data movement statements. For the procedure, see Moving data between member clusters.

Columns and example queries

The table is dbclustergroup_data_movement.move_info. It isn't in dbclustergroup_sys.

Columns

The table has the following columns.

Column Type Description
job_id VARCHAR The job ID that ALTER DBCLUSTERGROUP MOVE COLLOCATION returned.
status VARCHAR Running, Paused, Completed, Cancelled, or Error. Paused means that the service stopped the job for a time, for example while it replaces the data mover compute that runs the job. You can't pause or resume a job yourself.
phase VARCHAR Initializing, Precheck, Seeding, Cdc, CutoverInit, or CutoverFlip.
execution_method VARCHAR How the job copies changes. The value is LogicalReplication.
move_type VARCHAR What the job moves. The value is Collocation.
object_name VARCHAR The name of the collocation that the job moves.
source_member_cluster_alias VARCHAR The alias of the member cluster that the job moves the collocation from.
target_member_cluster_alias VARCHAR The alias of the member cluster that the job moves the collocation to.
errors VARCHAR Plain text with the failure reason. NULL while the job is healthy.
warnings VARCHAR Plain text with findings that don't stop the job. It can hold more than one line. NULL while the job is healthy.
progress_details VARCHAR JSON text. The keys PRECHECKS, SEEDING, CDC and CUTOVER each hold the progress of that phase. A key appears after its phase reports progress. The CDC progress includes the replication lag in seconds.
created_at VARCHAR When the job started, in UTC, as YYYY-MM-DDTHH:MM:SSZ.
updated_at VARCHAR When the job last changed, in UTC, as YYYY-MM-DDTHH:MM:SSZ. The job publishes progress periodically, so this value lags real time slightly.
cleanup_status VARCHAR Whether the cleanup of the job has finished: NotStarted, InProgress, Complete, or Blocked. Blocked means that cleanup is blocked because the source or destination member cluster does not have a healthy writer instance.
Where to query it

Query the table at the routing endpoint, in an unpinned session. Change jobs with ALTER DBCLUSTERGROUP MOVE, CUTOVER JOB, and CANCEL JOB.

Your router user needs the dbclustergroup_metadata_read_only privilege or the dbclustergroup_move_admin privilege.

Filter a query on the job ID with WHERE job_id = 'id', or on the status with WHERE status = 'status'. You can give only one of the two filters. Like the other system tables, the table refuses ORDER BY and accepts LIMIT n, LIMIT n OFFSET m, and LIMIT m, n with integer literals. For the other query rules, see Filters the system tables accept.

Example queries

The following query reads every column of one job.

SELECT * FROM dbclustergroup_data_movement.move_info WHERE job_id = '4a6f1c2e-7d3b-4c1a-9e2f-5b8d0c6a1f30';

The following query reads the phase and progress of one job, including its replication lag and the rows copied against the estimated total.

SELECT job_id, status, phase, progress_details, errors, warnings FROM dbclustergroup_data_movement.move_info WHERE job_id = '4a6f1c2e-7d3b-4c1a-9e2f-5b8d0c6a1f30';

The following query lists the running jobs.

SELECT job_id, status, phase FROM dbclustergroup_data_movement.move_info WHERE status = 'Running';

For more information, see the following topics: