Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.
Original topic: 尝试使用 tidb 遇到的问题
[TiDB Usage Environment] Testing
[TiDB Version] 7.4.0
Encountered the following issues when deleting data:
- execute failed: Information schema is out of date: schema failed to update in 1 lease
- Cannot execute: TiKV server reports stale command
- Region is unavailable
If you put the incorrect content of the above question into the forum’s search box, you can find the solution.
Give a man a fish, and you feed him for a day. Teach a man to fish, and you feed him for a lifetime.
How did you delete it? Did you directly use “delete from t” on the large table?
It would be best if you could provide the steps and logs.
The regine information is outdated, it should be an issue with regine cache synchronizing PD information, right?
How exactly was it deleted? It’s best to send the original log of the deletion process. Also, logs at the info and warn levels generally don’t need to be addressed.
This might be caused by deleting too much data, leading to an OOM. Please share the node logs for a look.