使用tiflash的表已经不再使用,下线tiflash机器。我缩容的过程如下:
1)修改表tiflash副本为0
2)查看数据库已经没有使用tiflash
mysql> SELECT
→ TABLE_SCHEMA AS db_name,
→ TABLE_NAME AS table_name,
→ REPLICA_COUNT,
→ AVAILABLE
→ FROM information_schema.tiflash_replica;
Empty set (0.01 sec)
3)scale in 共7台tiflash
问题:
7台tiflash中的5台已经正常下线。有两台一直处于“Pending Offline” 状态,已经将近一周时间了。
看tiflash的日志,下面的日志一直在循环
[2026/04/03 06:32:40.839 +08:00] [WARN] [KVStore.cpp:151] [“tryFlushRegionCacheInStorage can not get table for region [region 1519893278, applied: term 101 index 151] with table id 58009, ignored”] [thread_id=5]
[2026/04/03 06:53:44.385 +08:00] [WARN] [KVStore.cpp:151] [“tryFlushRegionCacheInStorage can not get table for region [region 1519893054, applied: term 101 index 150] with table id 57981, ignored”] [thread_id=4]
[2026/04/03 06:53:45.482 +08:00] [WARN] [KVStore.cpp:151] [“tryFlushRegionCacheInStorage can not get table for region [region 1519893238, applied: term 111 index 166] with table id 58004, ignored”] [thread_id=5]
[2026/04/03 06:53:53.758 +08:00] [WARN] [KVStore.cpp:151] [“tryFlushRegionCacheInStorage can not get table for region [region 1519893174, applied: term 102 index 152] with table id 57996, ignored”] [thread_id=7]
[2026/04/03 07:07:15.822 +08:00] [WARN] [KVStore.cpp:151] [“tryFlushRegionCacheInStorage can not get table for region [region 1519893126, applied: term 93 index 139] with table id 57990, ignored”] [thread_id=4]