TiDB reports an error when executing any SQL

Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tidb执行任何sql都直接报错

| username: Hacker_lBbigVlk

What is the issue and how to solve it?

| username: tidb菜鸟一只 | Original post link

Did you upgrade the cluster?

| username: Hacker_lBbigVlk | Original post link

No upgrade.

| username: zhanggame1 | Original post link

Did you perform any operations before the issue occurred?

| username: redgame | Original post link

The issue is caused by the modification or inconsistency of region boundaries in the TiKV cluster, resulting in a discrepancy between the key/range recognized by TiDB and what is actually stored in TiKV.
pd-ctl --pd-endpoints= region
tiup cluster repair

| username: Hacker_lBbigVlk | Original post link

It is a third-party program. We need to check further to see what specific operations it performed.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.