以下是相关日志
、、、、、、、、、、、、、、、、、、、、、
[2022/03/02 23:10:00.915 +08:00] [INFO] [apply.rs:1383] [“execute admin command”] [command=“cmd_type: ChangePeer change_peer { change_type: AddLearnerNode peer { id: 26009 store_id: 21001 role: Learner } }”] [index=4656] [term=6] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:00.932 +08:00] [INFO] [apply.rs:1755] [“exec ConfChange”] [epoch=“conf_ver: 98 version: 233”] [type=AddLearner] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:00.932 +08:00] [INFO] [apply.rs:1895] [“add learner successfully”] [region=“id: 17045 start_key: 7480000000000000FFE85F728000000000FF1923130000000000FA end_key: 7480000000000000FFE85F728000000000FF1F72270000000000FA region_epoch { conf_ver: 98 version: 233 } peers { id: 17046 store_id: 3001 } peers { id: 17048 store_id: 14028 } peers { id: 26008 store_id: 3002 }”] [peer=“id: 26009 store_id: 21001 role: Learner”] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:00.949 +08:00] [INFO] [raft.rs:2609] [“switched to configuration”] [config=“Configuration { voters: Configuration { incoming: Configuration { voters: {17048, 26008, 17046} }, outgoing: Configuration { voters: {} } }, learners: {26009}, learners_next: {}, auto_leave: false }”] [raft_id=17046] [region_id=17045]
[2022/03/02 23:10:03.912 +08:00] [INFO] [apply.rs:1383] [“execute admin command”] [command=“cmd_type: ChangePeerV2 change_peer_v2 { changes { peer { id: 26009 store_id: 21001 } } changes { change_type: AddLearnerNode peer { id: 26008 store_id: 3002 role: Learner } } }”] [index=4657] [term=6] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:03.927 +08:00] [INFO] [apply.rs:1936] [“exec ConfChangeV2”] [epoch=“conf_ver: 99 version: 233”] [kind=EnterJoint] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:03.928 +08:00] [INFO] [apply.rs:2116] [“conf change successfully”] [“current region”=“id: 17045 start_key: 7480000000000000FFE85F728000000000FF1923130000000000FA end_key: 7480000000000000FFE85F728000000000FF1F72270000000000FA region_epoch { conf_ver: 101 version: 233 } peers { id: 17046 store_id: 3001 } peers { id: 17048 store_id: 14028 } peers { id: 26008 store_id: 3002 role: DemotingVoter } peers { id: 26009 store_id: 21001 role: IncomingVoter }”] [“original region”=“id: 17045 start_key: 7480000000000000FFE85F728000000000FF1923130000000000FA end_key: 7480000000000000FFE85F728000000000FF1F72270000000000FA region_epoch { conf_ver: 99 version: 233 } peers { id: 17046 store_id: 3001 } peers { id: 17048 store_id: 14028 } peers { id: 26008 store_id: 3002 } peers { id: 26009 store_id: 21001 role: Learner }”] [changes="[peer { id: 26009 store_id: 21001 }, change_type: AddLearnerNode peer { id: 26008 store_id: 3002 role: Learner }]"] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:03.939 +08:00] [INFO] [apply.rs:1383] [“execute admin command”] [command=“cmd_type: ChangePeerV2 change_peer_v2 {}”] [index=4658] [term=6] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:03.939 +08:00] [INFO] [apply.rs:1936] [“exec ConfChangeV2”] [epoch=“conf_ver: 101 version: 233”] [kind=LeaveJoint] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:03.939 +08:00] [INFO] [apply.rs:2146] [“leave joint state successfully”] [region=“id: 17045 start_key: 7480000000000000FFE85F728000000000FF1923130000000000FA end_key: 7480000000000000FFE85F728000000000FF1F72270000000000FA region_epoch { conf_ver: 103 version: 233 } peers { id: 17046 store_id: 3001 } peers { id: 17048 store_id: 14028 } peers { id: 26008 store_id: 3002 role: Learner } peers { id: 26009 store_id: 21001 }”] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:03.939 +08:00] [INFO] [apply.rs:1383] [“execute admin command”] [command=“cmd_type: ChangePeer change_peer { change_type: RemoveNode peer { id: 26008 store_id: 3002 role: Learner } }”] [index=4659] [term=6] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:03.939 +08:00] [INFO] [apply.rs:1755] [“exec ConfChange”] [epoch=“conf_ver: 103 version: 233”] [type=RemoveNode] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:03.940 +08:00] [INFO] [apply.rs:1863] [“remove peer successfully”] [region=“id: 17045 start_key: 7480000000000000FFE85F728000000000FF1923130000000000FA end_key: 7480000000000000FFE85F728000000000FF1F72270000000000FA region_epoch { conf_ver: 103 version: 233 } peers { id: 17046 store_id: 3001 } peers { id: 17048 store_id: 14028 } peers { id: 26008 store_id: 3002 role: Learner } peers { id: 26009 store_id: 21001 }”] [peer=“id: 26008 store_id: 3002 role: Learner”] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:03.950 +08:00] [INFO] [raft.rs:2609] [“switched to configuration”] [config=“Configuration { voters: Configuration { incoming: Configuration { voters: {17048, 26009, 17046} }, outgoing: Configuration { voters: {17048, 26008, 17046} } }, learners: {}, learners_next: {26008}, auto_leave: false }”] [raft_id=17046] [region_id=17045]
[2022/03/02 23:10:03.955 +08:00] [INFO] [raft.rs:2609] [“switched to configuration”] [config=“Configuration { voters: Configuration { incoming: Configuration { voters: {17048, 26009, 17046} }, outgoing: Configuration { voters: {} } }, learners: {26008}, learners_next: {}, auto_leave: false }”] [raft_id=17046] [region_id=17045]
[2022/03/02 23:10:03.955 +08:00] [INFO] [raft.rs:2609] [“switched to configuration”] [config=“Configuration { voters: Configuration { incoming: Configuration { voters: {17048, 26009, 17046} }, outgoing: Configuration { voters: {} } }, learners: {}, learners_next: {}, auto_leave: false }”] [raft_id=17046] [region_id=17045]
[2022/03/02 23:10:04.554 +08:00] [INFO] [apply.rs:1383] [“execute admin command”] [command=“cmd_type: ChangePeer change_peer { change_type: AddLearnerNode peer { id: 26010 store_id: 3002 role: Learner } }”] [index=4660] [term=6] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:04.554 +08:00] [INFO] [apply.rs:1755] [“exec ConfChange”] [epoch=“conf_ver: 104 version: 233”] [type=AddLearner] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:04.554 +08:00] [INFO] [apply.rs:1895] [“add learner successfully”] [region=“id: 17045 start_key: 7480000000000000FFE85F728000000000FF1923130000000000FA end_key: 7480000000000000FFE85F728000000000FF1F72270000000000FA region_epoch { conf_ver: 104 version: 233 } peers { id: 17046 store_id: 3001 } peers { id: 17048 store_id: 14028 } peers { id: 26009 store_id: 21001 }”] [peer=“id: 26010 store_id: 3002 role: Learner”] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:04.554 +08:00] [INFO] [raft.rs:2609] [“switched to configuration”] [config=“Configuration { voters: Configuration { incoming: Configuration { voters: {17048, 26009, 17046} }, outgoing: Configuration { voters: {} } }, learners: {26010}, learners_next: {}, auto_leave: false }”] [raft_id=17046] [region_id=17045]
[2022/03/02 23:10:06.924 +08:00] [INFO] [apply.rs:1383] [“execute admin command”] [command=“cmd_type: ChangePeerV2 change_peer_v2 { changes { peer { id: 26010 store_id: 3002 } } changes { change_type: AddLearnerNode peer { id: 26009 store_id: 21001 role: Learner } } }”] [index=4661] [term=6] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:06.935 +08:00] [INFO] [apply.rs:1936] [“exec ConfChangeV2”] [epoch=“conf_ver: 105 version: 233”] [kind=EnterJoint] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:06.943 +08:00] [INFO] [apply.rs:2116] [“conf change successfully”] [“current region”=“id: 17045 start_key: 7480000000000000FFE85F728000000000FF1923130000000000FA end_key: 7480000000000000FFE85F728000000000FF1F72270000000000FA region_epoch { conf_ver: 107 version: 233 } peers { id: 17046 store_id: 3001 } peers { id: 17048 store_id: 14028 } peers { id: 26009 store_id: 21001 role: DemotingVoter } peers { id: 26010 store_id: 3002 role: IncomingVoter }”] [“original region”=“id: 17045 start_key: 7480000000000000FFE85F728000000000FF1923130000000000FA end_key: 7480000000000000FFE85F728000000000FF1F72270000000000FA region_epoch { conf_ver: 105 version: 233 } peers { id: 17046 store_id: 3001 } peers { id: 17048 store_id: 14028 } peers { id: 26009 store_id: 21001 } peers { id: 26010 store_id: 3002 role: Learner }”] [changes="[peer { id: 26010 store_id: 3002 }, change_type: AddLearnerNode peer { id: 26009 store_id: 21001 role: Learner }]"] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:06.947 +08:00] [INFO] [apply.rs:1383] [“execute admin command”] [command=“cmd_type: ChangePeerV2 change_peer_v2 {}”] [index=4662] [term=6] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:06.948 +08:00] [INFO] [apply.rs:1936] [“exec ConfChangeV2”] [epoch=“conf_ver: 107 version: 233”] [kind=LeaveJoint] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:06.948 +08:00] [INFO] [apply.rs:2146] [“leave joint state successfully”] [region=“id: 17045 start_key: 7480000000000000FFE85F728000000000FF1923130000000000FA end_key: 7480000000000000FFE85F728000000000FF1F72270000000000FA region_epoch { conf_ver: 109 version: 233 } peers { id: 17046 store_id: 3001 } peers { id: 17048 store_id: 14028 } peers { id: 26009 store_id: 21001 role: Learner } peers { id: 26010 store_id: 3002 }”] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:06.955 +08:00] [INFO] [apply.rs:1383] [“execute admin command”] [command=“cmd_type: ChangePeer change_peer { change_type: RemoveNode peer { id: 26009 store_id: 21001 role: Learner } }”] [index=4663] [term=6] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:06.955 +08:00] [INFO] [apply.rs:1755] [“exec ConfChange”] [epoch=“conf_ver: 109 version: 233”] [type=RemoveNode] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:06.957 +08:00] [INFO] [apply.rs:1863] [“remove peer successfully”] [region=“id: 17045 start_key: 7480000000000000FFE85F728000000000FF1923130000000000FA end_key: 7480000000000000FFE85F728000000000FF1F72270000000000FA region_epoch { conf_ver: 109 version: 233 } peers { id: 17046 store_id: 3001 } peers { id: 17048 store_id: 14028 } peers { id: 26009 store_id: 21001 role: Learner } peers { id: 26010 store_id: 3002 }”] [peer=“id: 26009 store_id: 21001 role: Learner”] [peer_id=17046] [region_id=17045]
[2022/03/02 23:10:06.961 +08:00] [INFO] [raft.rs:2609] [“switched to configuration”] [config=“Configuration { voters: Configuration { incoming: Configuration { voters: {17048, 26010, 17046} }, outgoing: Configuration { voters: {17048, 26009, 17046} } }, learners: {}, learners_next: {26009}, auto_leave: false }”] [raft_id=17046] [region_id=17045]
[2022/03/02 23:10:06.964 +08:00] [INFO] [raft.rs:2609] [“switched to configuration”] [config=“Configuration { voters: Configuration { incoming: Configuration { voters: {17048, 26010, 17046} }, outgoing: Configuration { voters: {} } }, learners: {26009}, learners_next: {}, auto_leave: false }”] [raft_id=17046] [region_id=17045]
[2022/03/02 23:10:06.965 +08:00] [INFO] [raft.rs:2609] [“switched to configuration”] [config=“Configuration { voters: Configuration { incoming: Configuration { voters: {17048, 26010, 17046} }, outgoing: Configuration { voters: {} } }, learners: {}, learners_next: {}, auto_leave: false }”] [raft_id=17046] [region_id=17045]
[2022/03/02 23:12:09.331 +08:00] [INFO] [util.rs:544] [“connecting to PD endpoint”] [endpoints=http://192.168.135.134:2379]
[2022/03/02 23:12:09.363 +08:00] [INFO] [] [“New connected subchannel at 0x7f8bdd858830 for subchannel 0x7f8be7799c00”]