[TiDB Usage Environment] Production Environment / Testing / PoC
[TiDB Version]
[Reproduction Path] What operations were performed when the problem occurred
[Encountered Problem: Problem Phenomenon and Impact]
[Resource Configuration] Go to TiDB Dashboard - Cluster Info - Hosts and take a screenshot of this page
[Attachments: Screenshots / Logs / Monitoring]
I am a newbie, first time encountering TiDB. The previous person in charge just left and didn’t leave any TiDB documentation. No one knows how to handle TiDB. Today, business queries reported that the data in the TiDB tables is incomplete. The data is synchronized from MySQL. Could any experts advise on how to analyze this issue? I am a beginner with TiDB and just started learning. Apologies for the basic question.
Specific problems require specific analysis. Identify which tables are incomplete and examine the extent of the incompleteness. Then check if there are any migration logs left.
First, determine whether it is real-time synchronization or one-time synchronization. If the data is indeed incomplete, it is recommended to re-synchronize the full data and then perform real-time synchronization.
This statement suggests that there is an inconsistency in the existing baseline data. You can consider using the official sync_diff_inspector tool to verify and compare the baseline data. Its use case is to check the consistency of two sets of data in MySQL/TiDB, and it can also output repair SQL to fill in the missing data where there are differences.
For detailed operations, you can refer to the official documentation: