Check verification status, review inconsistencies, and manage DTS data verification tasks.
Prerequisites
A data verification task is created and configured. Configure data verification.
Usage notes
Verification tasks in a synchronization or migration instance appear on both the instance details page and the Data Verification page. Standalone tasks appear only on the Data Verification page.
View Check Details for full and schema verification tasks only after their status is Complete. For incremental verification tasks, view Check Details only when the Current Offset is after the time of the incremental data change.
Incremental verification merges multiple changes to the same record within a period before checking consistency. The displayed record count may be lower than the actual number of incremental changes.
Inconsistent data is retained for 30 days by default. Review and resolve inconsistencies promptly.
If a full verification task detects inconsistencies, correct the data and run a manual verification or re-run the task to confirm consistency.
DTS automatically re-verifies inconsistencies in incremental verification tasks approximately every 10 minutes. The interval may increase with large volumes of inconsistent data.
-
You are charged for incremental validation tasks even when they are paused.
View details on the Data Verification page
Go to the data verification task list page. Choose one of the following methods.
DTS console (quick)
Go to the Data Verification page.
Optional: In the upper-left corner of the page, select the region of the verification instance.
DTS console (standard)
Log on to the Data Transmission Service (DTS) console.
In the left-side navigation pane, click Data Verification.
Optional: In the upper-left corner of the page, select the region of the verification instance.
DMS console
NoteThe actual steps may vary based on the mode and layout of the DMS console. For more information, see Simplified mode console and Customize the layout and style of the DMS interface.
Log on to the Data Management Service (DMS) console.
In the top menu bar, choose .
Optional: To the right of Verification Task, select the region of the verification instance.
Click the instance ID to open its details page.
Optional: In the left-side navigation pane, click Task Management.
In the Progress section, click Full Data Verification, Incremental Data Verification, or Schema Verification to view the verification details.
Basic Information
The Basic Information tab shows the task start time, verification time rule, status, progress, and error messages. Displayed content varies by task configuration.
After the task starts, you can Restart, Pause, Stopped, or Delete the task. What to do next.
ImportantThe Status on the Basic Information tab reflects the task status. View verification results on the Check Details tab.
Check Details
The Check Details tab shows source and destination database/table names, verification status, and verification time.
NoteThe results on the Check Details tab are sorted in descending order by the Number of Inconsistent Records.
You can download a revised SQL statement only for full data verification tasks. Tasks started before 14:04:52 (UTC+8) on November 20, 2023 must be re-run to enable this feature.
The Total Number of Records is an estimated value, while the Number of records completed by verification is the actual count of verified records. The Number of records completed by verification may be higher than the Total Number of Records.
If the Number of Inconsistent Records is 0, source and destination data is consistent. No report data is generated.
If the Number of Inconsistent Records is not 0, data or schema inconsistencies exist between source and destination. In the Actions column, click View Report, Download Report, or Download Revised SQL Statements to manually fix the inconsistencies using the downloaded report and revised SQL statement.
ImportantUse caution when executing DELETE statements from a revised SQL statement.
View details in synchronization or migration instances
Go to the data synchronization or data migration task list using one of the following methods.
From the DTS console
Log in to the Data Transmission Service (DTS) console.
In the left-side navigation pane, click Data Synchronization or Data Migration.
Optional: In the upper-left corner, select the instance region.
From the DMS console
NoteSteps may vary by DMS console mode and layout. Simple mode console, Customize the layout and style of the DMS console.
Log in to the Data Management Service (DMS) console.
In the top menu bar, choose or .
Optional: To the right of Data Synchronization Tasks or Data Migration Tasks, select the region of the synchronization or migration instance.
Click the instance ID to open its details page.
Optional: In the left-side navigation pane, click Task Management.
To the right of Progress, clear the Hide Completed Modules checkbox.
In the Progress section, click Full Data Verification, Incremental Data Verification, or Schema Verification to view the verification details.
Basic Information
The Basic Information tab shows the task start time, verification time rule, status, progress, and error messages. Displayed content varies by task configuration.
After the task starts, you can Restart, Pause, Stopped, or Delete the task. What to do next.
ImportantThe Status on the Basic Information tab reflects the task status. View verification results on the Check Details tab.
Check Details
The Check Details tab shows source and destination database/table names, verification status, and verification time.
NoteThe results on the Check Details tab are sorted in descending order by the Number of Inconsistent Records.
You can download a revised SQL statement only for full data verification tasks. Tasks started before 14:04:52 (UTC+8) on November 20, 2023 must be re-run to enable this feature.
The Total Number of Records is an estimated value, while the Number of records completed by verification is the actual count of verified records. The Number of records completed by verification may be higher than the Total Number of Records.
If the Number of Inconsistent Records is 0, source and destination data is consistent. No report data is generated.
If the Number of Inconsistent Records is not 0, data or schema inconsistencies exist between source and destination. In the Actions column, click View Report, Download Report, or Download Revised SQL Statements to manually fix the inconsistencies using the downloaded report and revised SQL statement.
ImportantUse caution when executing DELETE statements from a revised SQL statement.
What to do next
After correcting inconsistencies, manage the verification task in the Progress section.
Management operations are not supported for schema verification tasks.
Grayed-out buttons indicate unsupported operations for the current task status.
A synchronization or migration instance with a verification task appears in both its task list (Data Synchronization Tasks or Data Migration Tasks) and the Verification Task list. Exercise caution.
Go to the Task Management page of the target instance.
To the right of Progress, clear the Hide Completed Modules checkbox.
Click the Full Data Verification or Incremental Data Verification module.
Optional: Click the Basic Information tab.
Manage the verification task.
Pause a verification task
ImportantYou can pause a verification task only while it is running.
Full data verification tasks cannot resume after being paused.
To the right of Actions, click Pause, then click OK in the Note dialog box. The task Status changes to Pausing.
Restart a verification task
NoteYou can restart the verification task only when its Status is Pausing or Completed.
Restarting a full data verification task re-verifies all existing data in the source and destination databases.
To the right of Actions, click Restart. In the Note dialog box that appears, click OK.
Stop a verification task
NoteOnly incremental verification tasks can be stopped. After stopping, the task Status changes to Completed.
To the right of Actions, click Stopped. In the Note dialog box that appears, click OK.
Delete a verification task
ImportantDeleted verification tasks cannot be recovered. You can only create a new one.
To the right of Actions, click Delete. In the Note dialog box that appears, click OK.
API reference
API | Description |
Queries information about data inconsistencies in a verification task. | |
Queries the download URL of a data verification report. | |
Queries the details of a full or incremental data verification task. |
FAQ
How do I recreate a full or incremental data verification task?
Use one of the following methods:
On the Data Verification page, create a standalone verification task.
NoteYou cannot create an incremental data verification task on this page.
Go to the Full Data Verification or Incremental Data Verification module of the target instance. On the Basic Information tab, click Delete, and then click Create Verification Task at the top of the page.
NoteDTS does not support data verification for instances whose Status is Completed.
Why does the verification status show "Failed"?
Possible reasons:
The table has no primary key or unique index and contains more than 10,000 rows. DTS skips full data verification for such tables because a table without a primary key cannot ensure data consistency between the source and destination tables. Skipping verification does not affect data synchronization, which continues to run as expected.
The data has neither a primary key nor a unique constraint. DTS skips incremental verification in this case.
Verifying materialized views is not supported.
The number of differing rows in a single table between source and destination exceeds 100,000, which can occur if synchronization is incomplete or conflicts exist.
The connection to the source or destination database is unstable, possibly due to network interruptions or permission changes.
Check the verification details page for the failure reason. Usage notes.
Why does a full or incremental data verification task not start?
This depends on whether the instance includes an incremental write module (incremental synchronization or migration):
Without an incremental write module:
Full data verification starts after the full data write is complete.
With an incremental write module:
NoteFull and incremental data verification tasks are independent and do not affect each other.
If the incremental task has no subtasks, both full and incremental verification start when the incremental write module first reaches zero latency.
If the incremental task has multiple subtasks (for example, MongoDB instance migration), both full and incremental verification start when all subtask latencies drop below 2 seconds.
Why are the results of an incremental data verification task always empty?
Incremental verification only records databases and tables with inconsistencies. If all incremental data is consistent, the results are empty.
Why is the current offset in the incremental verification module not updated?
The Current Offset in the incremental verification module indicates the last verification timestamp. If no new incremental data exists in the source database, the Current Offset is not updated or may show no timestamp.
Why is inconsistent data not detected by the incremental data verification task even when incremental data is written to the destination database?
Incremental verification uses the source database as the baseline. Inconsistencies are detected only when source changes are not replicated to the destination or when the replicated data does not match.
How long does full data verification take?
To estimate the duration of full data verification, set the sampling percentage to 10%, run the verification, and record the duration. Then estimate the duration of full verification proportionally. For example, if verification with 10% sampling takes X minutes, full verification (100%) is expected to take about 10X minutes. The actual duration is affected by the data volume, network bandwidth, and the performance of the source and destination databases. The estimate is for reference only.