tidb执行任何sql都直接报错

MySQL [tidb_smart_clue]> show table status;
ERROR 1105 (HY000): failed to decode region range key, key: “7480000000000000165F720000000000000000”, err: invalid marker byte, group bytes “timeserie”

MySQL [tidb_smart_clue]> show create table call_push_record\G;
ERROR 1105 (HY000): failed to decode region range key, key: “6D44423A3830000000FC00000000000000685449443A32303100FE”, err: invalid marker byte, group bytes “timeserie”

请问是什么问题,如何解决

你是升级集群了吗?

没有升级

发生问题前做什么操作了吗?

TiKV 集群中的 region 边界被修改或不一致导致的,导致了 TiDB 能够识别 region 的 key / range 和 TikV 实际上存储的不同,
pd-ctl --pd-endpoints= region
tiup cluster repair

是一个第三方的程序,具体做了什么操作我们需要再查一下

此话题已在最后回复的 60 天后被自动关闭。不再允许新回复。