虚拟机安装TiDb ,启动后说 Tikv Tiflash 是down,为何?

【 TiDB 使用环境】 测试
【 TiDB 版本】
【复现路径】做过哪些操作出现的问题
【遇到的问题:问题现象及影响】
【资源配置】进入到 TiDB Dashboard -集群信息 (Cluster Info) -主机(Hosts) 截图此页面
【附件:截图/日志/监控】
Note: Version constraint is resolved to v8.4.0. If you’d like to use other versions:

Use exact version:      tiup playground v7.1.0
Use version range:      tiup playground ^5
Use nightly:            tiup playground nightly

Start pd instance: v8.4.0
Start tikv instance: v8.4.0
Start tidb instance: v8.4.0
Waiting for tidb instances ready
127.0.0.1:4000 … Done
Start tiflash instance: v8.4.0
Waiting for tiflash instances ready
127.0.0.1:3930 … ⠦
tikv quit: signal: killed
[2024/11/29 19:37:18.780 -05:00] [INFO] [raft.rs:1259] [“became leader at term 6”] [term=6] [raft_id=127] [region_id=126] [thread_id=83]
[2024/11/29 19:37:18.780 -05:00] [INFO] [peer.rs:5834] [“require updating max ts”] [initial_status=25769803894] [region_id=126] [thread_id=83]
[2024/11/29 19:37:18.780 -05:00] [INFO] [endpoint.rs:386] [“Resolver initialized”] [pending_data_index=0] [snapshot_index=87] [observe_id=ObserveId(121)] [region=14] [thread_id=52]
[2024/11/29 19:37:18.780 -05:00] [INFO] [pd.rs:1708] [“succeed to update max timestamp”] [region_id=126] [thread_id=31]
[2024/11/29 19:37:18.780 -05:00] [INFO] [endpoint.rs:736] [“register observe region”] [region=“id: 126 start_key: 7480000000000000FF6A00000000000000F8 end_key: 7480000000000000FF6C00000000000000F8 region_epoch { conf_ver: 1 version: 59 } peers { id: 127 store_id: 1 }”] [thread_id=52]
[2024/11/29 19:37:18.780 -05:00] [INFO] [endpoint.rs:386] [“Resolver initialized”] [pending_data_index=0] [snapshot_index=6] [observe_id=ObserveId(122)] [region=126] [thread_id=52]
[2024/11/29 19:37:25.384 -05:00] [WARN] [peer.rs:725] [“[region 126] 127 handle 2 peer messages ("Tick", 2), detail: None”] [takes=135] [thread_id=83]
[2024/11/29 19:37:32.064 -05:00] [WARN] [peer.rs:725] [“[region 16] 17 handle 3 peer messages ("Tick", 3), detail: None”] [takes=641] [thread_id=83]
[2024/11/29 19:37:38.115 -05:00] [WARN] [peer.rs:725] [“[region 2] 3 handle 4 peer messages ("Tick", 4), detail: None”] [takes=1527] [thread_id=83]
[2024/11/29 19:37:41.532 -05:00] [WARN] [peer.rs:725] [“[region 100] 101 handle 1 peer messages ("Tick", 1), detail: Some("CheckLeaderLease")”] [takes=112] [thread_id=83]
Waiting for tiflash instances ready
127.0.0.1:3930 … Done

:tada: TiDB Playground Cluster is started, enjoy!

Connect TiDB: mysql --comments --host 127.0.0.1 --port 4000 -u root
TiDB Dashboard: http://127.0.0.1:2379/dashboard
Grafana: http://127.0.0.1:3000
tiflash quit: signal: killed
[2024/11/29 19:38:49.938 -05:00] [INFO] [Server.cpp:383] [“/workspace/source/tiflash/contrib/grpc/src/core/ext/filters/client_channel/subchannel.cc, line number: 887, log msg : subchannel 0x7faac375b400 {address=ipv4:127.0.0.1:20160, args=grpc.client_channel_factory=0x7fabf7981b88, grpc.default_authority=127.0.0.1:20160, grpc.initial_reconnect_backoff_ms=1000, grpc.internal.subchannel_pool=0x7fabf7acc9f0, grpc.max_receive_message_length=-1, grpc.max_reconnect_backoff_ms=3000, grpc.min_reconnect_backoff_ms=1000, grpc.primary_user_agent=grpc-c++/1.44.0, grpc.resource_quota=0x7fabf7accd50, grpc.server_uri=dns:///127.0.0.1:20160}: Retry in 3109 milliseconds”] [source=grpc] [thread_id=27]
[2024/11/29 19:38:49.938 -05:00] [WARN] [] [“KvGet Failed14: failed to connect to all addresses”] [source=pingcap.tikv] [thread_id=28]
[2024/11/29 19:38:49.938 -05:00] [INFO] [] [“try drop region {90,1,10}”] [source=pingcap.tikv] [thread_id=28]
[2024/11/29 19:38:49.938 -05:00] [INFO] [] [“drop region 90 because of send failure”] [source=pingcap.tikv] [thread_id=28]
[2024/11/29 19:38:49.938 -05:00] [INFO] [] [“drop store 1 because of send failure”] [source=pingcap.tikv] [thread_id=28]
[2024/11/29 19:38:53.051 -05:00] [INFO] [Server.cpp:383] [“/workspace/source/tiflash/contrib/grpc/src/core/ext/filters/client_channel/subchannel.cc, line number: 910, log msg : subchannel 0x7faac375b400 {address=ipv4:127.0.0.1:20160, args=grpc.client_channel_factory=0x7fabf7981b88, grpc.default_authority=127.0.0.1:20160, grpc.initial_reconnect_backoff_ms=1000, grpc.internal.subchannel_pool=0x7fabf7acc9f0, grpc.max_receive_message_length=-1, grpc.max_reconnect_backoff_ms=3000, grpc.min_reconnect_backoff_ms=1000, grpc.primary_user_agent=grpc-c++/1.44.0, grpc.resource_quota=0x7fabf7accd50, grpc.server_uri=dns:///127.0.0.1:20160}: failed to connect to channel, retrying”] [source=grpc] [thread_id=30]
[2024/11/29 19:38:54.856 -05:00] [INFO] [SegmentReadTaskScheduler.cpp:311] [“schedule sched_round=1 erased_pool_count=0 sched_null_count=0 sched_succ_count=0 reap=27ms cost=93ms”] [thread_id=13]
[2024/11/29 19:38:57.744 -05:00] [INFO] [SegmentReadTaskScheduler.cpp:311] [“schedule sched_round=1 erased_pool_count=0 sched_null_count=0 sched_succ_count=0 reap=465ms cost=525ms”] [thread_id=13]
[2024/11/29 19:39:01.483 -05:00] [WARN] [PathCapacityMetrics.cpp:257] [“Available space is only 14.93% of capacity size. Avail size: 2.44 GiB, used size: 1.00 B, capacity size: 16.35 GiB”] [thread_id=25]
[2024/11/29 19:39:05.378 -05:00] [ERROR] [] [“Send TsoRequest failed”] [source=pingcap.pd] [thread_id=15]

是不是空间不足?

开防火墙了么?关闭防火墙试试

机器配置,以及集群拓扑文件是什么?

selinux和防火墙是否关闭?tiup cluster display 集群名字 的信息贴下?

防火墙关闭了

集群名字怎么查

tiup cluster list 这个命令可以看集群名称

1 个赞

tiup cluster list
Name User Version Path PrivateKey


通过playground的方式创建的集群在关闭后会自动销毁。

嗯,这种情况不能通过 tiup cluster list 查看集群。
这个图就是上面说的 display 的信息

1 个赞

1 个赞

er.rs:6270] [“on split”] [source=ipv4:127.0.0.1:34426] [split_keys=“key 7480000000000000FF6400000000000000F8”] [peer_id=15] [region_id=14] [thread_id=83]
[2024/11/30 04:00:07.754 -05:00] [INFO] [pd.rs:1033] [“try to batch split region”] [task=batch_split] [region=“id: 14 start_key: 7480000000000000FF6200000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 55 } peers { id: 15 store_id: 1 }”] [new_region_ids=“[new_region_id: 120 new_peer_ids: 121]”] [region_id=14] [thread_id=30]
[2024/11/30 04:00:07.754 -05:00] [INFO] [apply.rs:1729] [“execute admin command”] [command=“cmd_type: BatchSplit splits { requests { split_key: 7480000000000000FF6400000000000000F8 new_region_id: 120 new_peer_ids: 121 } right_derive: true }”] [index=83] [term=6] [peer_id=15] [region_id=14] [thread_id=86]
[2024/11/30 04:00:07.754 -05:00] [INFO] [apply.rs:2595] [“split region”] [keys=“key 7480000000000000FF6400000000000000F8”] [region=“id: 14 start_key: 7480000000000000FF6200000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 55 } peers { id: 15 store_id: 1 }”] [peer_id=15] [region_id=14] [thread_id=86]
[2024/11/30 04:00:07.755 -05:00] [INFO] [endpoint.rs:292] [“region met split/merge command, stop tracking since key range changed, wait for re-register”] [req_type=BatchSplit] [thread_id=52]
[2024/11/30 04:00:07.755 -05:00] [INFO] [peer.rs:4392] [“moving 0 locks to new regions”] [region_id=14] [thread_id=83]
[2024/11/30 04:00:07.755 -05:00] [INFO] [peer.rs:4436] [“notify pd with split”] [split_count=2] [peer_id=15] [region_id=14] [thread_id=83]
[2024/11/30 04:00:07.755 -05:00] [INFO] [peer.rs:4518] [“insert new region”] [store_id=1] [is_uninitialized_peer_exist=false] [region=“id: 120 start_key: 7480000000000000FF6200000000000000F8 end_key: 7480000000000000FF6400000000000000F8 region_epoch { conf_ver: 1 version: 56 } peers { id: 121 store_id: 1 }”] [region_id=120] [thread_id=83]
[2024/11/30 04:00:07.755 -05:00] [INFO] [peer.rs:275] [“create peer”] [peer_id=121] [region_id=120] [thread_id=83]
[2024/11/30 04:00:07.755 -05:00] [INFO] [endpoint.rs:784] [“deregister observe region”] [observe_id=ObserveId(113)] [region_id=14] [store_id=Some(1)] [thread_id=52]
[2024/11/30 04:00:07.755 -05:00] [INFO] [endpoint.rs:736] [“register observe region”] [region=“id: 14 start_key: 7480000000000000FF6400000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 56 } peers { id: 15 store_id: 1 }”] [thread_id=52]
[2024/11/30 04:00:07.757 -05:00] [INFO] [raft.rs:2684] [“switched to configuration”] [config=“Configuration { voters: Configuration { incoming: Configuration { voters: {121} }, outgoing: Configuration { voters: {} } }, learners: {}, learners_next: {}, auto_leave: false }”] [raft_id=121] [region_id=120] [thread_id=83]
[2024/11/30 04:00:07.757 -05:00] [INFO] [raft.rs:1151] [“became follower at term 5”] [term=5] [raft_id=121] [region_id=120] [thread_id=83]
[2024/11/30 04:00:07.757 -05:00] [INFO] [raft.rs:387] [newRaft] [peers=“Configuration { incoming: Configuration { voters: {121} }, outgoing: Configuration { voters: {} } }”] [“last term”=5] [“last index”=5] [applied=5] [commit=5] [term=5] [raft_id=121] [region_id=120] [thread_id=83]
[2024/11/30 04:00:07.757 -05:00] [INFO] [raw_node.rs:315] [“RawNode created with id 121.”] [id=121] [raft_id=121] [region_id=120] [thread_id=83]
[2024/11/30 04:00:07.757 -05:00] [INFO] [raft.rs:1556] [“starting a new election”] [term=5] [raft_id=121] [region_id=120] [thread_id=83]
[2024/11/30 04:00:07.757 -05:00] [INFO] [raft.rs:1201] [“became pre-candidate at term 5”] [term=5] [raft_id=121] [region_id=120] [thread_id=83]
[2024/11/30 04:00:07.757 -05:00] [INFO] [raft.rs:1175] [“became candidate at term 6”] [term=6] [raft_id=121] [region_id=120] [thread_id=83]
[2024/11/30 04:00:07.757 -05:00] [INFO] [raft.rs:1259] [“became leader at term 6”] [term=6] [raft_id=121] [region_id=120] [thread_id=83]
[2024/11/30 04:00:07.757 -05:00] [INFO] [peer.rs:5834] [“require updating max ts”] [initial_status=25769803888] [region_id=120] [thread_id=83]
[2024/11/30 04:00:07.757 -05:00] [INFO] [endpoint.rs:386] [“Resolver initialized”] [pending_data_index=0] [snapshot_index=83] [observe_id=ObserveId(115)] [region=14] [thread_id=52]
[2024/11/30 04:00:07.757 -05:00] [INFO] [pd.rs:1708] [“succeed to update max timestamp”] [region_id=120] [thread_id=30]
[2024/11/30 04:00:07.758 -05:00] [INFO] [endpoint.rs:736] [“register observe region”] [region=“id: 120 start_key: 7480000000000000FF6200000000000000F8 end_key: 7480000000000000FF6400000000000000F8 region_epoch { conf_ver: 1 version: 56 } peers { id: 121 store_id: 1 }”] [thread_id=52]
[2024/11/30 04:00:07.758 -05:00] [INFO] [endpoint.rs:386] [“Resolver initialized”] [pending_data_index=0] [snapshot_index=6] [observe_id=ObserveId(116)] [region=120] [thread_id=52]
[2024/11/30 04:00:07.824 -05:00] [INFO] [peer.rs:6270] [“on split”] [source=ipv4:127.0.0.1:34426] [split_keys=“key 7480000000000000FF6800000000000000F8”] [peer_id=15] [region_id=14] [thread_id=83]
[2024/11/30 04:00:07.824 -05:00] [INFO] [peer.rs:6298] [“invalid split request”] [source=ipv4:127.0.0.1:34426] [peer_id=15] [region_id=14] [err=“EpochNotMatch("[region 14] 15 epoch changed conf_ver: 1 version: 56 != conf_ver: 1 version: 55, retry later", [id: 14 start_key: 7480000000000000FF6400000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 56 } peers { id: 15 store_id: 1 }])”] [thread_id=83]
[2024/11/30 04:00:07.827 -05:00] [INFO] [peer.rs:6270] [“on split”] [source=ipv4:127.0.0.1:34438] [split_keys=“key 7480000000000000FF6800000000000000F8”] [peer_id=15] [region_id=14] [thread_id=83]
[2024/11/30 04:00:07.828 -05:00] [INFO] [pd.rs:1033] [“try to batch split region”] [task=batch_split] [region=“id: 14 start_key: 7480000000000000FF6400000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 56 } peers { id: 15 store_id: 1 }”] [new_region_ids=“[new_region_id: 122 new_peer_ids: 123]”] [region_id=14] [thread_id=30]
[2024/11/30 04:00:07.828 -05:00] [INFO] [apply.rs:1729] [“execute admin command”] [command=“cmd_type: BatchSplit splits { requests { split_key: 7480000000000000FF6800000000000000F8 new_region_id: 122 new_peer_ids: 123 } right_derive: true }”] [index=84] [term=6] [peer_id=15] [region_id=14] [thread_id=85]
[2024/11/30 04:00:07.828 -05:00] [INFO] [apply.rs:2595] [“split region”] [keys=“key 7480000000000000FF6800000000000000F8”] [region=“id: 14 start_key: 7480000000000000FF6400000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 56 } peers { id: 15 store_id: 1 }”] [peer_id=15] [region_id=14] [thread_id=85]
[2024/11/30 04:00:07.829 -05:00] [INFO] [endpoint.rs:292] [“region met split/merge command, stop tracking since key range changed, wait for re-register”] [req_type=BatchSplit] [thread_id=52]
[2024/11/30 04:00:07.829 -05:00] [INFO] [peer.rs:4392] [“moving 0 locks to new regions”] [region_id=14] [thread_id=84]
[2024/11/30 04:00:07.830 -05:00] [INFO] [peer.rs:4436] [“notify pd with split”] [split_count=2] [peer_id=15] [region_id=14] [thread_id=84]
[2024/11/30 04:00:07.830 -05:00] [INFO] [peer.rs:4518] [“insert new region”] [store_id=1] [is_uninitialized_peer_exist=false] [region=“id: 122 start_key: 7480000000000000FF6400000000000000F8 end_key: 7480000000000000FF6800000000000000F8 region_epoch { conf_ver: 1 version: 57 } peers { id: 123 store_id: 1 }”] [region_id=122] [thread_id=84]
[2024/11/30 04:00:07.830 -05:00] [INFO] [peer.rs:275] [“create peer”] [peer_id=123] [region_id=122] [thread_id=84]
[2024/11/30 04:00:07.830 -05:00] [INFO] [endpoint.rs:784] [“deregister observe region”] [observe_id=ObserveId(115)] [region_id=14] [store_id=Some(1)] [thread_id=52]
[2024/11/30 04:00:07.830 -05:00] [INFO] [endpoint.rs:736] [“register observe region”] [region=“id: 14 start_key: 7480000000000000FF6800000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 57 } peers { id: 15 store_id: 1 }”] [thread_id=52]
[2024/11/30 04:00:07.830 -05:00] [INFO] [raft.rs:2684] [“switched to configuration”] [config=“Configuration { voters: Configuration { incoming: Configuration { voters: {123} }, outgoing: Configuration { voters: {} } }, learners: {}, learners_next: {}, auto_leave: false }”] [raft_id=123] [region_id=122] [thread_id=84]
[2024/11/30 04:00:07.830 -05:00] [INFO] [raft.rs:1151] [“became follower at term 5”] [term=5] [raft_id=123] [region_id=122] [thread_id=84]
[2024/11/30 04:00:07.830 -05:00] [INFO] [raft.rs:387] [newRaft] [peers=“Configuration { incoming: Configuration { voters: {123} }, outgoing: Configuration { voters: {} } }”] [“last term”=5] [“last index”=5] [applied=5] [commit=5] [term=5] [raft_id=123] [region_id=122] [thread_id=84]
[2024/11/30 04:00:07.830 -05:00] [INFO] [raw_node.rs:315] [“RawNode created with id 123.”] [id=123] [raft_id=123] [region_id=122] [thread_id=84]
[2024/11/30 04:00:07.830 -05:00] [INFO] [raft.rs:1556] [“starting a new election”] [term=5] [raft_id=123] [region_id=122] [thread_id=84]
[2024/11/30 04:00:07.830 -05:00] [INFO] [raft.rs:1201] [“became pre-candidate at term 5”] [term=5] [raft_id=123] [region_id=122] [thread_id=84]
[2024/11/30 04:00:07.830 -05:00] [INFO] [raft.rs:1175] [“became candidate at term 6”] [term=6] [raft_id=123] [region_id=122] [thread_id=84]
[2024/11/30 04:00:07.830 -05:00] [INFO] [raft.rs:1259] [“became leader at term 6”] [term=6] [raft_id=123] [region_id=122] [thread_id=84]
[2024/11/30 04:00:07.830 -05:00] [INFO] [peer.rs:5834] [“require updating max ts”] [initial_status=25769803890] [region_id=122] [thread_id=84]
[2024/11/30 04:00:07.830 -05:00] [INFO] [endpoint.rs:386] [“Resolver initialized”] [pending_data_index=0] [snapshot_index=84] [observe_id=ObserveId(117)] [region=14] [thread_id=52]
[2024/11/30 04:00:07.830 -05:00] [INFO] [endpoint.rs:736] [“register observe region”] [region=“id: 122 start_key: 7480000000000000FF6400000000000000F8 end_key: 7480000000000000FF6800000000000000F8 region_epoch { conf_ver: 1 version: 57 } peers { id: 123 store_id: 1 }”] [thread_id=52]
[2024/11/30 04:00:07.830 -05:00] [INFO] [endpoint.rs:386] [“Resolver initialized”] [pending_data_index=0] [snapshot_index=6] [observe_id=ObserveId(118)] [region=122] [thread_id=52]
[2024/11/30 04:00:07.830 -05:00] [INFO] [pd.rs:1708] [“succeed to update max timestamp”] [region_id=122] [thread_id=30]
[2024/11/30 04:00:07.866 -05:00] [INFO] [peer.rs:6270] [“on split”] [source=ipv4:127.0.0.1:34420] [split_keys=“key 7480000000000000FF6A00000000000000F8”] [peer_id=15] [region_id=14] [thread_id=83]
[2024/11/30 04:00:07.866 -05:00] [INFO] [peer.rs:6298] [“invalid split request”] [source=ipv4:127.0.0.1:34420] [peer_id=15] [region_id=14] [err=“EpochNotMatch("[region 14] 15 epoch changed conf_ver: 1 version: 57 != conf_ver: 1 version: 56, retry later", [id: 14 start_key: 7480000000000000FF6800000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 57 } peers { id: 15 store_id: 1 }])”] [thread_id=83]
[2024/11/30 04:00:07.870 -05:00] [INFO] [peer.rs:6270] [“on split”] [source=ipv4:127.0.0.1:34426] [split_keys=“key 7480000000000000FF6A00000000000000F8”] [peer_id=15] [region_id=14] [thread_id=83]
[2024/11/30 04:00:07.870 -05:00] [INFO] [pd.rs:1033] [“try to batch split region”] [task=batch_split] [region=“id: 14 start_key: 7480000000000000FF6800000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 57 } peers { id: 15 store_id: 1 }”] [new_region_ids=“[new_region_id: 124 new_peer_ids: 125]”] [region_id=14] [thread_id=30]
[2024/11/30 04:00:07.871 -05:00] [INFO] [apply.rs:1729] [“execute admin command”] [command=“cmd_type: BatchSplit splits { requests { split_key: 7480000000000000FF6A00000000000000F8 new_region_id: 124 new_peer_ids: 125 } right_derive: true }”] [index=85] [term=6] [peer_id=15] [region_id=14] [thread_id=85]
[2024/11/30 04:00:07.871 -05:00] [INFO] [apply.rs:2595] [“split region”] [keys=“key 7480000000000000FF6A00000000000000F8”] [region=“id: 14 start_key: 7480000000000000FF6800000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 57 } peers { id: 15 store_id: 1 }”] [peer_id=15] [region_id=14] [thread_id=85]
[2024/11/30 04:00:07.872 -05:00] [INFO] [endpoint.rs:292] [“region met split/merge command, stop tracking since key range changed, wait for re-register”] [req_type=BatchSplit] [thread_id=52]
[2024/11/30 04:00:07.872 -05:00] [INFO] [peer.rs:4392] [“moving 0 locks to new regions”] [region_id=14] [thread_id=83]
[2024/11/30 04:00:07.872 -05:00] [INFO] [peer.rs:4436] [“notify pd with split”] [split_count=2] [peer_id=15] [region_id=14] [thread_id=83]
[2024/11/30 04:00:07.872 -05:00] [INFO] [peer.rs:4518] [“insert new region”] [store_id=1] [is_uninitialized_peer_exist=false] [region=“id: 124 start_key: 7480000000000000FF6800000000000000F8 end_key: 7480000000000000FF6A00000000000000F8 region_epoch { conf_ver: 1 version: 58 } peers { id: 125 store_id: 1 }”] [region_id=124] [thread_id=83]
[2024/11/30 04:00:07.872 -05:00] [INFO] [peer.rs:275] [“create peer”] [peer_id=125] [region_id=124] [thread_id=83]
[2024/11/30 04:00:07.873 -05:00] [INFO] [endpoint.rs:784] [“deregister observe region”] [observe_id=ObserveId(117)] [region_id=14] [store_id=Some(1)] [thread_id=52]
[2024/11/30 04:00:07.873 -05:00] [INFO] [endpoint.rs:736] [“register observe region”] [region=“id: 14 start_key: 7480000000000000FF6A00000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 58 } peers { id: 15 store_id: 1 }”] [thread_id=52]
[2024/11/30 04:00:07.874 -05:00] [INFO] [raft.rs:2684] [“switched to configuration”] [config=“Configuration { voters: Configuration { incoming: Configuration { voters: {125} }, outgoing: Configuration { voters: {} } }, learners: {}, learners_next: {}, auto_leave: false }”] [raft_id=125] [region_id=124] [thread_id=83]
[2024/11/30 04:00:07.874 -05:00] [INFO] [raft.rs:1151] [“became follower at term 5”] [term=5] [raft_id=125] [region_id=124] [thread_id=83]
[2024/11/30 04:00:07.874 -05:00] [INFO] [raft.rs:387] [newRaft] [peers=“Configuration { incoming: Configuration { voters: {125} }, outgoing: Configuration { voters: {} } }”] [“last term”=5] [“last index”=5] [applied=5] [commit=5] [term=5] [raft_id=125] [region_id=124] [thread_id=83]
[2024/11/30 04:00:07.874 -05:00] [INFO] [raw_node.rs:315] [“RawNode created with id 125.”] [id=125] [raft_id=125] [region_id=124] [thread_id=83]
[2024/11/30 04:00:07.874 -05:00] [INFO] [raft.rs:1556] [“starting a new election”] [term=5] [raft_id=125] [region_id=124] [thread_id=83]
[2024/11/30 04:00:07.874 -05:00] [INFO] [raft.rs:1201] [“became pre-candidate at term 5”] [term=5] [raft_id=125] [region_id=124] [thread_id=83]
[2024/11/30 04:00:07.874 -05:00] [INFO] [raft.rs:1175] [“became candidate at term 6”] [term=6] [raft_id=125] [region_id=124] [thread_id=83]
[2024/11/30 04:00:07.874 -05:00] [INFO] [raft.rs:1259] [“became leader at term 6”] [term=6] [raft_id=125] [region_id=124] [thread_id=83]
[2024/11/30 04:00:07.874 -05:00] [INFO] [peer.rs:5834] [“require updating max ts”] [initial_status=25769803892] [region_id=124] [thread_id=83]
[2024/11/30 04:00:07.875 -05:00] [INFO] [endpoint.rs:386] [“Resolver initialized”] [pending_data_index=0] [snapshot_index=85] [observe_id=ObserveId(119)] [region=14] [thread_id=52]
[2024/11/30 04:00:07.875 -05:00] [INFO] [endpoint.rs:736] [“register observe region”] [region=“id: 124 start_key: 7480000000000000FF6800000000000000F8 end_key: 7480000000000000FF6A00000000000000F8 region_epoch { conf_ver: 1 version: 58 } peers { id: 125 store_id: 1 }”] [thread_id=52]
[2024/11/30 04:00:07.875 -05:00] [INFO] [pd.rs:1708] [“succeed to update max timestamp”] [region_id=124] [thread_id=30]
[2024/11/30 04:00:07.875 -05:00] [INFO] [endpoint.rs:386] [“Resolver initialized”] [pending_data_index=0] [snapshot_index=6] [observe_id=ObserveId(120)] [region=124] [thread_id=52]
[2024/11/30 04:00:07.903 -05:00] [INFO] [peer.rs:6270] [“on split”] [source=ipv4:127.0.0.1:34446] [split_keys=“key 7480000000000000FF6C00000000000000F8”] [peer_id=15] [region_id=14] [thread_id=83]
[2024/11/30 04:00:07.903 -05:00] [INFO] [peer.rs:6298] [“invalid split request”] [source=ipv4:127.0.0.1:34446] [peer_id=15] [region_id=14] [err=“EpochNotMatch("[region 14] 15 epoch changed conf_ver: 1 version: 58 != conf_ver: 1 version: 57, retry later", [id: 14 start_key: 7480000000000000FF6A00000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 58 } peers { id: 15 store_id: 1 }])”] [thread_id=83]
[2024/11/30 04:00:07.905 -05:00] [INFO] [peer.rs:6270] [“on split”] [source=ipv4:127.0.0.1:34420] [split_keys=“key 7480000000000000FF6C00000000000000F8”] [peer_id=15] [region_id=14] [thread_id=84]
[2024/11/30 04:00:07.906 -05:00] [INFO] [pd.rs:1033] [“try to batch split region”] [task=batch_split] [region=“id: 14 start_key: 7480000000000000FF6A00000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 58 } peers { id: 15 store_id: 1 }”] [new_region_ids=“[new_region_id: 126 new_peer_ids: 127]”] [region_id=14] [thread_id=30]
[2024/11/30 04:00:07.906 -05:00] [INFO] [apply.rs:1729] [“execute admin command”] [command=“cmd_type: BatchSplit splits { requests { split_key: 7480000000000000FF6C00000000000000F8 new_region_id: 126 new_peer_ids: 127 } right_derive: true }”] [index=86] [term=6] [peer_id=15] [region_id=14] [thread_id=86]
[2024/11/30 04:00:07.906 -05:00] [INFO] [apply.rs:2595] [“split region”] [keys=“key 7480000000000000FF6C00000000000000F8”] [region=“id: 14 start_key: 7480000000000000FF6A00000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 58 } peers { id: 15 store_id: 1 }”] [peer_id=15] [region_id=14] [thread_id=86]
[2024/11/30 04:00:07.907 -05:00] [INFO] [endpoint.rs:292] [“region met split/merge command, stop tracking since key range changed, wait for re-register”] [req_type=BatchSplit] [thread_id=52]
[2024/11/30 04:00:07.907 -05:00] [INFO] [peer.rs:4392] [“moving 0 locks to new regions”] [region_id=14] [thread_id=84]
[2024/11/30 04:00:07.907 -05:00] [INFO] [peer.rs:4436] [“notify pd with split”] [split_count=2] [peer_id=15] [region_id=14] [thread_id=84]
[2024/11/30 04:00:07.907 -05:00] [INFO] [peer.rs:4518] [“insert new region”] [store_id=1] [is_uninitialized_peer_exist=false] [region=“id: 126 start_key: 7480000000000000FF6A00000000000000F8 end_key: 7480000000000000FF6C00000000000000F8 region_epoch { conf_ver: 1 version: 59 } peers { id: 127 store_id: 1 }”] [region_id=126] [thread_id=84]
[2024/11/30 04:00:07.907 -05:00] [INFO] [peer.rs:275] [“create peer”] [peer_id=127] [region_id=126] [thread_id=84]
[2024/11/30 04:00:07.908 -05:00] [INFO] [endpoint.rs:784] [“deregister observe region”] [observe_id=ObserveId(119)] [region_id=14] [store_id=Some(1)] [thread_id=52]
[2024/11/30 04:00:07.908 -05:00] [INFO] [endpoint.rs:736] [“register observe region”] [region=“id: 14 start_key: 7480000000000000FF6C00000000000000F8 end_key: 748000FFFFFFFFFFFFF900000000000000F8 region_epoch { conf_ver: 1 version: 59 } peers { id: 15 store_id: 1 }”] [thread_id=52]
[2024/11/30 04:00:07.908 -05:00] [INFO] [raft.rs:2684] [“switched to configuration”] [config=“Configuration { voters: Configuration { incoming: Configuration { voters: {127} }, outgoing: Configuration { voters: {} } }, learners: {}, learners_next: {}, auto_leave: false }”] [raft_id=127] [region_id=126] [thread_id=84]
[2024/11/30 04:00:07.908 -05:00] [INFO] [raft.rs:1151] [“became follower at term 5”] [term=5] [raft_id=127] [region_id=126] [thread_id=84]
[2024/11/30 04:00:07.908 -05:00] [INFO] [raft.rs:387] [newRaft] [peers=“Configuration { incoming: Configuration { voters: {127} }, outgoing: Configuration { voters: {} } }”] [“last term”=5] [“last index”=5] [applied=5] [commit=5] [term=5] [raft_id=127] [region_id=126] [thread_id=84]
[2024/11/30 04:00:07.908 -05:00] [INFO] [raw_node.rs:315] [“RawNode created with id 127.”] [id=127] [raft_id=127] [region_id=126] [thread_id=84]
[2024/11/30 04:00:07.908 -05:00] [INFO] [raft.rs:1556] [“starting a new election”] [term=5] [raft_id=127] [region_id=126] [thread_id=84]
[2024/11/30 04:00:07.908 -05:00] [INFO] [raft.rs:1201] [“became pre-candidate at term 5”] [term=5] [raft_id=127] [region_id=126] [thread_id=84]
[2024/11/30 04:00:07.908 -05:00] [INFO] [raft.rs:1175] [“became candidate at term 6”] [term=6] [raft_id=127] [region_id=126] [thread_id=84]
[2024/11/30 04:00:07.908 -05:00] [INFO] [raft.rs:1259] [“became leader at term 6”] [term=6] [raft_id=127] [region_id=126] [thread_id=84]
[2024/11/30 04:00:07.908 -05:00] [INFO] [peer.rs:5834] [“require updating max ts”] [initial_status=25769803894] [region_id=126] [thread_id=84]
[2024/11/30 04:00:07.908 -05:00] [INFO] [endpoint.rs:736] [“register observe region”] [region=“id: 126 start_key: 7480000000000000FF6A00000000000000F8 end_key: 7480000000000000FF6C00000000000000F8 region_epoch { conf_ver: 1 version: 59 } peers { id: 127 store_id: 1 }”] [thread_id=52]
[2024/11/30 04:00:07.908 -05:00] [INFO] [endpoint.rs:386] [“Resolver initialized”] [pending_data_index=0] [snapshot_index=86] [observe_id=ObserveId(121)] [region=14] [thread_id=52]
[2024/11/30 04:00:07.908 -05:00] [INFO] [endpoint.rs:386] [“Resolver initialized”] [pending_data_index=0] [snapshot_index=6] [observe_id=ObserveId(122)] [region=126] [thread_id=52]
[2024/11/30 04:00:07.908 -05:00] [INFO] [pd.rs:1708] [“succeed to update max timestamp”] [region_id=126] [thread_id=30]
[2024/11/30 04:00:12.796 -05:00] [INFO] [client.rs:799] [“set cluster version to 8.4.0”] [thread_id=30]
[2024/11/30 04:00:14.896 -05:00] [WARN] [peer.rs:725] [“[region 120] 121 handle 1 peer messages ("Tick", 1), detail: Some("CheckLeaderLease")”] [takes=156] [thread_id=83]
[2024/11/30 04:00:16.585 -05:00] [WARN] [peer.rs:725] [“[region 24] 25 handle 4 peer messages ("Tick", 4), detail: None”] [takes=248] [thread_id=84]
[2024/11/30 04:00:20.211 -05:00] [WARN] [peer.rs:725] [“[region 122] 123 handle 1 peer messages ("Tick", 1), detail: Some("CheckLeaderLease")”] [takes=215] [thread_id=83]

没有人 帮看下问题?

这报错大概率是组件都部署在一个机器上,而且cpu资源也不够。导致pd抢不到cpu执行时间,无法提供tso。
给你的虚拟机多划拨一些资源。

1 个赞

是的,把虚拟机 加了CPU和MEM,可以了,谢谢