store 190589610上的日志:
[2021/10/02 06:42:35.237 +08:00] [INFO] [raft.rs:971] ["[logterm: 24, index: 1030796, vote: 221727388] ignored vote from 223128009 [logterm: 24, index: 1030796]: lease
is not expired"] [“msg type”=MsgRequestPreVote] [“remaining ticks”=9] [term=24] [msg_index=1030796] [msg_term=24] [from=223128009] [vote=221727388] [log_index=1030796
] [log_term=24] [raft_id=192440095] [region_id=131228717]
store 220255427上的日志:
[2021/10/02 02:56:37.217 +08:00] [INFO] [peer.rs:221] [“replicate peer”] [peer_id=223128009] [region_id=131228717]
[2021/10/02 02:56:37.217 +08:00] [INFO] [raft.rs:783] [“became follower at term 0”] [term=0] [raft_id=223128009] [region_id=131228717]
[2021/10/02 02:56:37.217 +08:00] [INFO] [raft.rs:285] [newRaft] [peers="[]"] [“last term”=0] [“last index”=0] [applied=0] [commit=0] [term=0] [raft_id=223128009] [region_id=131228717]
[2021/10/02 02:56:37.217 +08:00] [INFO] [raw_node.rs:222] [“RawNode created with id 223128009.”] [id=223128009] [raft_id=223128009] [region_id=131228717]
[2021/10/02 02:56:37.217 +08:00] [INFO] [raft.rs:1003] [“received a message with higher term from 221727388”] [“msg type”=MsgHeartbeat] [message_term=24] [term=0] [from=221727388] [raft_id=223128009] [region_id=131228717]
[2021/10/02 02:56:37.217 +08:00] [INFO] [raft.rs:783] [“became follower at term 24”] [term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 02:56:37.616 +08:00] [INFO] [] [“Connect failed: {“created”:”@1633114597.615955262",“description”:“Failed to connect to remote host: FD Shutdown”,“file”:"/rust/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.5.3/grpc/src/core/lib/iomgr/lockfree_event.cc",“file_line”:195,“os_error”:“Timeout occurred”,“referenced_errors”:[{“created”:"@1633114597.615948725",“description”:“connect() timed out”,“file”:"/rust/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.5.3/grpc/src/core/lib/iomgr/tcp_client_posix.cc",“file_line”:112}],“target_address”:“ipv4:10.28.208.18:20274”}"]
[2021/10/02 02:56:37.616 +08:00] [INFO] [] [“Subchannel 0x7f1976888900: Retry immediately”]
[2021/10/02 02:56:37.616 +08:00] [INFO] [] [“Failed to connect to channel, retrying”]
[2021/10/02 02:56:37.616 +08:00] [WARN] [raft_client.rs:296] [“RPC batch_raft fail”] [err=“Some(RpcFailure(RpcStatus { status: 14-UNAVAILABLE, details: Some(“failed to connect to all addresses”) }))”] [sink_err=“Some(RpcFinished(Some(RpcStatus { status: 14-UNAVAILABLE, details: Some(“failed to connect to all addresses”) })))”] [to_addr=10.28.208.18:20274]
[2021/10/02 02:56:37.616 +08:00] [INFO] [store.rs:2258] [“broadcasting unreachable”] [unreachable_store_id=222296723] [store_id=221796927]
[2021/10/02 02:56:37.662 +08:00] [WARN] [raft_client.rs:199] [“send to 10.28.208.18:20274 fail, the gRPC connection could be broken”]
[2021/10/02 02:56:37.662 +08:00] [ERROR] [transport.rs:163] [“send raft msg err”] [err=“Other(”[src/server/raft_client.rs:208]: RaftClient send fail")"]
[2021/10/02 02:56:37.674 +08:00] [INFO] [transport.rs:144] [“resolve store address ok”] [addr=10.28.208.18:20274] [store_id=222296723]
[2021/10/02 02:56:37.674 +08:00] [INFO] [raft_client.rs:48] [“server: new connection with tikv endpoint”] [addr=10.28.208.18:20274]
[2021/10/02 02:56:37.973 +08:00] [INFO] [snap.rs:225] [“saving snapshot file”] [file=/media/nvme0n1/tidb/deploy/tikv-20273/snap/rev_131228717_24_1030793_(default|lock|write).sst] [snap_key=131228717_24_1030793]
[2021/10/02 02:56:37.993 +08:00] [INFO] [raft.rs:1957] ["[commit: 0, lastindex: 0, lastterm: 0] starts to restore snapshot [index: 1030793, term: 24]"] [snapshot_term=24] [snapshot_index=1030793] [last_term=0] [last_index=0] [commit=0] [raft_id=223128009] [region_id=131228717]
[2021/10/02 02:56:37.994 +08:00] [INFO] [raft_log.rs:487] [“log [committed=0, applied=0, unstable.offset=1, unstable.entries.len()=0] starts to restore snapshot [index: 1030793, term: 24]”] [snapshot_term=24] [snapshot_index=1030793] [log=“committed=0, applied=0, unstable.offset=1, unstable.entries.len()=0”] [raft_id=223128009] [region_id=131228717]
[2021/10/02 02:56:37.994 +08:00] [INFO] [raft.rs:1893] ["[commit: 1030793, term: 24] restored snapshot [index: 1030793, term: 24]"] [snapshot_term=24] [snapshot_index=1030793] [commit=1030793] [term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 02:56:37.994 +08:00] [INFO] [peer_storage.rs:990] [“begin to apply snapshot”] [peer_id=223128009] [region_id=131228717]
[2021/10/02 02:56:37.994 +08:00] [INFO] [peer_storage.rs:1033] [“apply snapshot with state ok”] [state=“applied_index: 1030793 truncated_state { index: 1030793 term: 24 }”] [region=“id: 131228717 start_key: 7480000000000000FFF75F7286F20B86E9FFC5ED480000000000FA end_key: 7480000000000000FFF75F7286F21D58B0FF7178C60000000000FA region_epoch { conf_ver: 228 version: 80 } peers { id: 192440095 store_id: 190589610 } peers { id: 221727388 store_id: 220255427 } peers { id: 222330609 store_id: 222296724 } peers { id: 223128009 store_id: 221796927 is_learner: true }”] [peer_id=223128009] [region_id=131228717]
[2021/10/02 02:56:37.994 +08:00] [INFO] [peer.rs:2771] [“snapshot is applied”] [region=“id: 131228717 start_key: 7480000000000000FFF75F7286F20B86E9FFC5ED480000000000FA end_key: 7480000000000000FFF75F7286F21D58B0FF7178C60000000000FA region_epoch { conf_ver: 228 version: 80 } peers { id: 192440095 store_id: 190589610 } peers { id: 221727388 store_id: 220255427 } peers { id: 222330609 store_id: 222296724 } peers { id: 223128009 store_id: 221796927 is_learner: true }”] [peer_id=223128009] [region_id=131228717]
[2021/10/02 02:56:37.994 +08:00] [INFO] [region.rs:297] [“begin apply snap data”] [region_id=131228717]
[2021/10/02 02:56:38.245 +08:00] [INFO] [region.rs:362] [“apply new data”] [time_takes=241.677221ms] [region_id=131228717]
[2021/10/02 03:00:49.930 +08:00] [INFO] [apply.rs:1231] [“execute admin command”] [command=“cmd_type: ChangePeer change_peer { peer { id: 223128009 store_id: 221796927
} }”] [index=1030794] [term=24] [peer_id=223128009] [region_id=131228717]
[2021/10/02 03:00:49.930 +08:00] [INFO] [apply.rs:1570] [“exec ConfChange”] [epoch=“conf_ver: 228 version: 80”] [type=AddNode] [peer_id=223128009] [region_id=131228717
]
[2021/10/02 03:00:49.930 +08:00] [INFO] [apply.rs:1625] [“add peer successfully”] [region=“id: 131228717 start_key: 7480000000000000FFF75F7286F20B86E9FFC5ED480000000000FA end_key: 7480000000000000FFF75F7286F21D58B0FF7178C60000000000FA region_epoch { conf_ver: 228 version: 80 } peers { id: 192440095 store_id: 190589610 } peers { id: 221727388 store_id: 220255427 } peers { id: 222330609 store_id: 222296724 } peers { id: 223128009 store_id: 221796927 is_learner: true }”] [peer=“id: 223128009 store_id: 221796927”] [peer_id=223128009] [region_id=131228717]
[2021/10/02 06:42:17.018 +08:00] [INFO] [raft.rs:1177] [“starting a new election”] [term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:42:17.018 +08:00] [INFO] [raft.rs:833] [“became pre-candidate at term 24”] [term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:42:17.018 +08:00] [INFO] [raft.rs:902] [“223128009 received message from 223128009”] [term=24] [msg=MsgRequestPreVote] [from=223128009] [id=223128009] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:42:17.018 +08:00] [INFO] [raft.rs:923] ["[logterm: 24, index: 1030796] sent request to 192440095"] [msg=MsgRequestPreVote] [term=24] [id=192440095] [log_index=1030796] [log_term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:42:17.018 +08:00] [INFO] [raft.rs:923] ["[logterm: 24, index: 1030796] sent request to 221727388"] [msg=MsgRequestPreVote] [term=24] [id=221727388] [log_index=1030796] [log_term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:42:35.235 +08:00] [INFO] [raft.rs:1177] [“starting a new election”] [term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:42:35.235 +08:00] [INFO] [raft.rs:833] [“became pre-candidate at term 24”] [term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:42:35.235 +08:00] [INFO] [raft.rs:902] [“223128009 received message from 223128009”] [term=24] [msg=MsgRequestPreVote] [from=223128009] [id=223128009] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:42:35.235 +08:00] [INFO] [raft.rs:923] ["[logterm: 24, index: 1030796] sent request to 192440095"] [msg=MsgRequestPreVote] [term=24] [id=192440095] [log_index=1030796] [log_term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:42:35.235 +08:00] [INFO] [raft.rs:923] ["[logterm: 24, index: 1030796] sent request to 221727388"] [msg=MsgRequestPreVote] [term=24] [id=221727388] [log_index=1030796] [log_term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:42:53.286 +08:00] [INFO] [raft.rs:1177] [“starting a new election”] [term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:42:53.286 +08:00] [INFO] [raft.rs:833] [“became pre-candidate at term 24”] [term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:42:53.286 +08:00] [INFO] [raft.rs:902] [“223128009 received message from 223128009”] [term=24] [msg=MsgRequestPreVote] [from=223128009] [id=223128009] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:42:53.286 +08:00] [INFO] [raft.rs:923] ["[logterm: 24, index: 1030796] sent request to 192440095"] [msg=MsgRequestPreVote] [term=24] [id=192440095] [log_index=1030796] [log_term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:42:53.286 +08:00] [INFO] [raft.rs:923] ["[logterm: 24, index: 1030796] sent request to 221727388"] [msg=MsgRequestPreVote] [term=24] [id=221727388] [log_index=1030796] [log_term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 06:43:06.584 +08:00] [INFO] [raft.rs:783] [“became follower at term 24”] [term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 07:00:33.583 +08:00] [INFO] [raft.rs:1739] ["[term 24] received MsgTimeoutNow from 221727388 and starts an election to get leadership."] [from=221727388] [term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 07:00:33.583 +08:00] [INFO] [raft.rs:1177] [“starting a new election”] [term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 07:00:33.583 +08:00] [INFO] [raft.rs:807] [“became candidate at term 25”] [term=25] [raft_id=223128009] [region_id=131228717]
[2021/10/02 07:00:33.583 +08:00] [INFO] [raft.rs:902] [“223128009 received message from 223128009”] [term=25] [msg=MsgRequestVote] [from=223128009] [id=223128009] [raft_id=223128009] [region_id=131228717]
[2021/10/02 07:00:33.583 +08:00] [INFO] [raft.rs:923] ["[logterm: 24, index: 1030796] sent request to 192440095"] [msg=MsgRequestVote] [term=25] [id=192440095] [log_index=1030796] [log_term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 07:00:33.583 +08:00] [INFO] [raft.rs:923] ["[logterm: 24, index: 1030796] sent request to 221727388"] [msg=MsgRequestVote] [term=25] [id=221727388] [log_index=1030796] [log_term=24] [raft_id=223128009] [region_id=131228717]
[2021/10/02 07:00:33.583 +08:00] [INFO] [raft.rs:1673] [“received from 221727388”] [term=25] [“msg type”=MsgRequestVoteResponse] [from=221727388] [raft_id=223128009] [region_id=131228717]
[2021/10/02 07:00:33.583 +08:00] [INFO] [raft.rs:874] [“became leader at term 25”] [term=25] [raft_id=223128009] [region_id=131228717]
[2021/10/02 07:03:48.540 +08:00] [INFO] [raft.rs:971] ["[logterm: 25, index: 1030797, vote: 223128009] ignored vote from 221727388 [logterm: 25, index: 1030797]: lease is not expired"] [“msg type”=MsgRequestPreVote] [“remaining ticks”=5] [term=25] [msg_index=1030797] [msg_term=25] [from=221727388] [vote=223128009] [log_index=1030797] [log_term=25] [raft_id=223128009] [region_id=131228717]
[2021/10/02 03:06:35.939 +08:00] [INFO] [pd.rs:782] [“try to change peer”] [peer=“id: 222330609 store_id: 222296724”] [change_type=RemoveNode] [region_id=131228717]
[2021/10/02 03:06:35.939 +08:00] [INFO] [pd.rs:782] [“try to change peer”] [peer=“id: 223128489 store_id: 221796927 is_learner: true”] [change_type=AddLearnerNode] [re
gion_id=164176396]
[2021/10/02 03:06:35.939 +08:00] [INFO] [pd.rs:782] [“try to change peer”] [peer=“id: 223128556 store_id: 221796927 is_learner: true”] [change_type=AddLearnerNode] [re
gion_id=221441578]
[2021/10/02 03:06:35.940 +08:00] [INFO] [peer.rs:2763] [“propose conf change peer”] [change_peer=222330609] [change_type=RemoveNode] [peer_id=221727388] [region_id=131
228717]
[2021/10/02 03:06:35.941 +08:00] [INFO] [pd.rs:782] [“try to change peer”] [peer=“id: 223128338 store_id: 221796927”] [change_type=AddNode] [region_id=177832663]
[2021/10/02 03:06:35.941 +08:00] [INFO] [pd.rs:782] [“try to change peer”] [peer=“id: 223128453 store_id: 221796927”] [change_type=AddNode] [region_id=219926510]
[2021/10/02 03:06:35.942 +08:00] [INFO] [pd.rs:782] [“try to change peer”] [peer=“id: 223128340 store_id: 221796927”] [change_type=AddNode] [region_id=116071690]
[2021/10/02 03:06:35.942 +08:00] [INFO] [pd.rs:782] [“try to change peer”] [peer=“id: 223128339 store_id: 221796927”] [change_type=AddNode] [region_id=204215808]
[2021/10/02 03:06:35.948 +08:00] [INFO] [apply.rs:1231] [“execute admin command”] [command=“cmd_type: ChangePeer change_peer { change_type: RemoveNode peer { id: 22233
0609 store_id: 222296724 } }”] [index=1030795] [term=24] [peer_id=221727388] [region_id=131228717]
[2021/10/02 03:06:35.948 +08:00] [INFO] [apply.rs:1570] [“exec ConfChange”] [epoch=“conf_ver: 229 version: 80”] [type=RemoveNode] [peer_id=221727388] [region_id=131228
717]
[2021/10/02 03:06:35.948 +08:00] [INFO] [apply.rs:1678] [“remove peer successfully”] [region=“id: 131228717 start_key: 7480000000000000FFF75F7286F20B86E9FFC5ED48000000
0000FA end_key: 7480000000000000FFF75F7286F21D58B0FF7178C60000000000FA region_epoch { conf_ver: 229 version: 80 } peers { id: 192440095 store_id: 190589610 } peers { i
d: 221727388 store_id: 220255427 } peers { id: 222330609 store_id: 222296724 } peers { id: 223128009 store_id: 221796927 }”] [peer=“id: 222330609 store_id: 222296724”]
[peer_id=221727388] [region_id=131228717]
[2021/10/02 03:06:35.951 +08:00] [INFO] [peer.rs:1956] [“notify pd with change peer region”] [region=“id: 131228717 start_key: 7480000000000000FFF75F7286F20B86E9FFC5ED
480000000000FA end_key: 7480000000000000FFF75F7286F21D58B0FF7178C60000000000FA region_epoch { conf_ver: 230 version: 80 } peers { id: 192440095 store_id: 190589610 } p
eers { id: 221727388 store_id: 220255427 } peers { id: 223128009 store_id: 221796927 }”] [peer_id=221727388] [region_id=131228717]
[2021/10/02 06:42:35.237 +08:00] [INFO] [raft.rs:971] ["[logterm: 24, index: 1030796, vote: 221727388] ignored vote from 223128009 [logterm: 24, index: 1030796]: lease is not expired"] [“msg type”=MsgRequestPreVote] [“remaining ticks”=4] [term=24] [msg_index=1030796] [msg_term=24] [from=223128009] [vote=221727388] [log_index=1030796] [log_term=24] [raft_id=221727388] [region_id=131228717]