TiFlash reported a bunch of errors at TiDBSchemaSyncer.cpp:252

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

Original topic: tiflash 报了一堆TiDBSchemaSyncer.cpp:252 的错误

| username: Running

Since early morning, this error has been reported continuously, and it is now unusable.

| username: wangccsy | Original post link

From the logs, it appears that your table ID mapping is incorrect (lost).

| username: Running | Original post link

How to recover, can we first cancel the TiFlash replica of this table to recover?

| username: Yifei_Jia | Original post link

If the business allows, you can resynchronize this table.

| username: Running | Original post link

The issue is that TiFlash cannot start, and this is the latest error.

| username: Yifei_Jia | Original post link

You can take a closer look at what DDL was executed or what operations were performed, and check the initial error in the logs.

| username: 有猫万事足 | Original post link

If possible, please provide the version information of the components.

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

Find the table with the corresponding table_id of 167366, first set the TiFlash replica to 0, and then start TiFlash.

| username: Jellybean | Original post link

Did you perform any operations on the cluster before this error occurred?

It seems that there were some anomalies during the data synchronization update process.
You can check the logs of TiKV and TiFlash again to see if there are any other error messages.

| username: dba远航 | Original post link

It should be that the metadata of TiKV has an anomaly.