ADMIN CHECK INDEX Error

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

Original topic: ADMIN CHECK INDEX 报错

| username: Holland

[TiDB Usage Environment] Production Environment
[TiDB Version]
6.1.1
[Reproduction Path] Operations performed that led to the issue
[Encountered Issue: Problem Phenomenon and Impact]
Found that the query results are inaccurate


So executed ADMIN CHECK INDEX xxx xxx
Error reported
ERROR 8003 (HY000): table count 30670636 != index(idx_status) count 30675180
[Resource Configuration]
[Attachments: Screenshots/Logs/Monitoring]

| username: WalterWj | Original post link

You can consider index rebuilding…

| username: Holland | Original post link

Rebuilding the index worked, but why?

| username: WalterWj | Original post link

For example, using features like Lightning and batch insert has caused data index inconsistencies.

| username: WalterWj | Original post link

If the import fails in lightning local mode, it will cause such issues.

| username: Holland | Original post link

If the br restore fails, will this happen?

| username: WalterWj | Original post link

Not sure, maybe :thinking:

| username: Holland | Original post link

Does that mean all indexes need to be checked?

| username: WalterWj | Original post link

Just use “admin check table”. No need to check one by one.

| username: Holland | Original post link

Okay, thank you.

| username: system | Original post link

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