突然想起来,我的c客户端失败后,我用redis-cli命令行去连接后,出现了如下错误:
[abelard@fedora redis-6.2.6]$ ./src/redis-cli -h 172.216.9.83 -p 6666
172.216.9.83:6666> scan *
Error: Server closed the connection
(8.19s)
172.216.9.83:6666>
进一步,看到了Tidis有一个日志文件:tikv-service.log,不停的吐:
2023/01/03 15:02:43.760 +08:00 ERRO [GC] failed to begin txn
2023/01/03 15:02:46.268 +08:00 ERRO error to begin new transaction: [/root/.cargo/git/checkouts/client-rust-cbb958c150bdea6a/2648fe6/tikv-
client-pd/src/cluster.rs:264]: failed to connect to [Member { name: "pd-172.216.9.83-2379", member_id: 7916348439350824078, peer_urls: ["ht
tp://172.216.9.83:2380"], client_urls: ["http://172.216.9.83:2379"], leader_priority: 0, deploy_path: "", binary_version: "", git_hash: "",
dc_location: "" }, Member { name: "pd-172.216.9.82-2379", member_id: 15138125198525324009, peer_urls: ["http://172.216.9.82:2380"], client_u
rls: ["http://172.216.9.82:2379"], leader_priority: 0, deploy_path: "", binary_version: "", git_hash: "", dc_location: "" }, Member { name:
"pd-172.216.9.81-2379", member_id: 17883531146897579492, peer_urls: ["http://172.216.9.81:2380"], client_urls: ["http://172.216.9.81:2379"],
leader_priority: 0, deploy_path: "", binary_version: "", git_hash: "", dc_location: "" }]
而2379和2380是pd-server的端口,我的TiDB,一直在工作,这两个端口,不知道为什么在Tidis中出现了错误?