-
Notifications
You must be signed in to change notification settings - Fork 202
Open
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
We use sync-diff-inspector to compare the data of two Aurora clusters.
We have seen the following error in sync-diff-inspector when comparing table rows for large table, especially if there are massive mismatches.
[2025/02/23 23:21:32.208 +00:00] [ERROR] [report.go:404] ["Set table meet error"] [error="context deadline exceeded"] [stack="github.com/pingcap/tidb-tools/sync_diff_inspector/report.(*Report).SetTableMeetError\n\t/app/sync_diff_inspector/report/report.go:404\nmain.(*Diff).consume\n\t/app/sync_diff_inspector/diff.go:457\nmain.(*Diff).Equal.func2\n\t/app/sync_diff_inspector/diff.go:290\ngithub.com/pingcap/tidb-tools/sync_diff_inspector/utils.(*WorkerPool).Apply.func1\n\t/app/sync_diff_inspector/utils/utils.go:94"]
The context deadline error could happen in comparing checksum phase due to query taking too long.
We have tried increasing the query timeout and using larger instance types, which helped reduce the errors, but would not fix the essential problem.
We should consider improving the parallelism in comparing checksum and row data.
Metadata
Metadata
Assignees
Labels
No labels