在日志文件 ng.log 中发现 file does not exist for table 76705 不知道这里identity 76705表是什么表?
[2024/09/11 17:50:58.558 +08:00] [FATAL] [document.go:59] ["failed to open a badger storage"] [path=/data/tidb-data/prometheus-9090/docdb] [error="file does not exist for table 76705"] [stack="github.com/pingcap/ng-monitoring/database/document.Init\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/ng-monitoring/database/document/document.go:59\ngithub.com/pingcap/ng-monitoring/database.Init\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/ng-monitoring/database/database.go:14\nmain.main\n\t/home/jenkins/agent/workspace/build-common/go/src/github.com/pingcap/ng-monitoring/main.go:70\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:250"]
[FATAL] [document.go:59]
["failed to open a badger storage"]
[path=/data/tidb-data/prometheus-9090/docdb]
[error="file does not exist for table 76705"]
用这3个SQL查表名
SELECT * FROM INFORMATION_SCHEMA.TIFLASH_REPLICA a WHERE a.table_id=‘2455218’;
SELECT * FROM INFORMATION_SCHEMA.tables c WHERE c.tidb_table_id=‘2455218’;
SELECT * FROM INFORMATION_SCHEMA.partitions b WHERE b.TIDB_PARTITION_ID=‘2455218’;