【 TiDB 使用环境】测试
【 TiDB 版本】v7.6.0
1次/秒的频率查看show table regions时,发现peers字段一直在变化,而且一会儿1个值一会儿2个值。大家的环境会这样吗,是否bug呢?
show create table t1;
Table|Create Table |
-----+------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
t1 |CREATE TABLE `t1` (¶ `c` int(11) DEFAULT NULL,¶ `c2` varchar(100) DEFAULT NULL¶) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin /*T! SHARD_ROW_ID_BITS=4 */|
set config pd replication.max-replicas =1;
show config where NAME like '%max-replicas%';
Type|Instance |Name |Value|
----+----------------+------------------------+-----+
pd |192.168.10.3:2379|replication.max-replicas|1 |
pd |192.168.10.3:2382|replication.max-replicas|1 |
pd |192.168.10.3:2384|replication.max-replicas|1 |
show table t1 regions;
REGION_ID|START_KEY|END_KEY |LEADER_ID|LEADER_STORE_ID|PEERS |
---------+---------+--------+---------+---------------+------------+
14025|72000001 |78000000| 16277| 2|16277, 16278|
REGION_ID|START_KEY|END_KEY |LEADER_ID|LEADER_STORE_ID|PEERS|
---------+---------+--------+---------+---------------+-----+
14025|72000001 |78000000| 16288| 2|16288|
REGION_ID|START_KEY|END_KEY |LEADER_ID|LEADER_STORE_ID|PEERS|
---------+---------+--------+---------+---------------+-----+
14025|72000001 |78000000| 16299| 2|16299|
REGION_ID|START_KEY|END_KEY |LEADER_ID|LEADER_STORE_ID|PEERS |
---------+---------+--------+---------+---------------+------------+
14025|72000001 |78000000| 16814| 3|16814, 16816|