The number of rows in information_schema.tables becomes 0

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

Original topic: infomation_schema.tables中的行数变成0

| username: TiDBer_Lee

【TiDB Usage Environment】Production Environment
【TiDB Version】v6.5.5
I found that the tables in the database were originally normal, but after one night, the number of rows in information_schema.tables became 0. The queries on these tables became very slow, and many execution plans involved full table scans. The health of the tables shows 100. What is the situation here?

| username: h5n1 | Original post link

After a night, what did you do the night before?

| username: TiDBer_Lee | Original post link

Add nodes, perform regular CRUD operations.

| username: h5n1 | Original post link

What kind of node did you add? How much data was added, deleted, or modified?

| username: zhanggame1 | Original post link

First, perform an analyze.

| username: WalterWj | Original post link

The information_schema.tables table should not have the permission to be cleared… How about restarting a tidb-server node and logging in through the restarted tidb-server node to check if the table data is still there?

| username: TiDBer_Lee | Original post link

Working on it, the table is too large, the key is to find the cause.

| username: ShawnYan | Original post link

First, check the logs to see if it’s only happening on a specific TiDB server or all of them.

| username: TiDBer_Lee | Original post link

System tables do not store KV?

| username: 小龙虾爱大龙虾 | Original post link

How can it be like this? :rofl:

| username: heiwandou | Original post link

Can the analysis table be repaired?

| username: oceanzhang | Original post link

Are you performing a region migration?

| username: dba远航 | Original post link

The table’s metadata has been corrupted, so the database is likely to have difficulty operating normally.

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

It wouldn’t be the tidb-server node, right?

| username: 路在何chu | Original post link

Delete statistics and re-analyze.

| username: 路在何chu | Original post link

There are no other errors in the logs either.