TiDB节点持续报错region count getting from PD is 0

【 TiDB 使用环境】生产环境
【 TiDB 版本】v6.5.3
【复现路径】集群依次做过机房迁移、PD重建、扩容缩容。
【遇到的问题:问题现象及影响】
集群部署了TiFlash节点,但是未使用,目前TiDB持续报错,基本每毫秒报一次

[2023/06/28 17:16:24.574 +08:00] [ERROR] [ddl_tiflash_api.go:396] ["get tiflash sync progress failed"] [error="region count getting from PD is 0"] [tableID=8765] [IsPartition=false]
[2023/06/28 17:16:24.575 +08:00] [ERROR] [ddl_tiflash_api.go:396] ["get tiflash sync progress failed"] [error="region count getting from PD is 0"] [tableID=8765] [IsPartition=false]
[2023/06/28 17:16:24.576 +08:00] [ERROR] [ddl_tiflash_api.go:396] ["get tiflash sync progress failed"] [error="region count getting from PD is 0"] [tableID=8765] [IsPartition=false]
[2023/06/28 17:16:24.577 +08:00] [ERROR] [ddl_tiflash_api.go:396] ["get tiflash sync progress failed"] [error="region count getting from PD is 0"] [tableID=8765] [IsPartition=false]
[2023/06/28 17:16:24.578 +08:00] [ERROR] [ddl_tiflash_api.go:396] ["get tiflash sync progress failed"] [error="region count getting from PD is 0"] [tableID=8765] [IsPartition=false]

这个现象一直存在,还是仅仅持续了一段时间

一直存在,已经产生很多300M的日志文件了

都是8765这个表吗?这个表是啥表,开tiflash副本了吗?

:sweat_smile:是一张临时表,尴尬的是tiflash节点已经缩容了,集群已经没有tiflash节点了

有其他临时表吗?看下报错不,和这张表有啥区别?那tiflash节点缩容之后已经不报错了?

select * from information_schema.tiflash_replica tr where tr.TABLE_ID=8765;

看看是那个表,是不是这个表上有tiflash的副本。

如果是,那就是你给这个表设置了tiflash副本但是又没有tiflash造成的。把副本去掉应该就可以了。

:astonished:是的,这个表里有数据,不应该呀,我记得下线时会检查是否有tiflash副本才对。我改一下试试。

我才看到是个临时表,表都不在了,那更像是个bug。 :joy:

不是真正的临时表,是一张物理表,只是临时使用的。

1 个赞

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