sofastack / sofa-jraft

A production-grade java implementation of RAFT consensus algorithm.
https://www.sofastack.tech/projects/sofa-jraft/
Apache License 2.0
3.57k stars 1.14k forks source link

JRAFT的无法通过IPV6组建集群,内部无法解析IPV6地址。急急急,需要快速处理 #1144

Closed SpringLin97 closed 3 weeks ago

SpringLin97 commented 1 month ago

启动配置 image image 启动后报错 [2024-08-14 15:25:13,756][INFO][Thread-1][com.alipay.sofa.jraft.util.JRaftServiceLoader]: SPI service [com.alipay.sofa.jraft.util.timer.RaftTimerFactory - com.alipay.sofa.jraft.util.timer.DefaultRaftTimerFactory] loading. [2024-08-14 15:25:13,822][INFO][Thread-1][com.alipay.sofa.jraft.core.NodeImpl]: The number of active nodes increment to 1. [2024-08-14 15:25:14,976][INFO][Thread-1][com.alipay.sofa.jraft.core.FSMCallerImpl]: Starts FSMCaller successfully. [2024-08-14 15:25:15,023][WARN][Thread-1][com.alipay.sofa.jraft.storage.snapshot.local.LocalSnapshotStorage]: No data for snapshot reader /database/jraft/master/data\snapshot. [2024-08-14 15:25:15,821][INFO][Thread-1][com.alipay.sofa.jraft.core.NodeImpl]: Node <M_BACKUP/[3001::98]:8082> init, term=0, lastLogId=LogId [index=0, term=0], conf=[3001::98]:8082,[3001::98]:8083,[3001::23]:8081, oldConf=. [2024-08-14 15:25:16,450][INFO][Thread-1][com.alipay.sofa.jraft.RaftGroupService]: Start the RaftGroupService successfully.

[2024-08-14 15:25:29,520][INFO][Thread-1][com.webstarter.cluster.core.jraft.server.RaftServer]: Started counter server at port:8082 [2024-08-14 15:25:29,520][INFO][JRaft-ElectionTimer-<M_BACKUP/[3001::98]:8082>0][com.alipay.sofa.jraft.core.NodeImpl]: Node <M_BACKUP/[3001::98]:8082> term 0 start preVote. [2024-08-14 15:26:11,239][ERROR][JRaft-ElectionTimer-<M_BACKUP/[3001::98]:8082>0][com.alipay.sofa.jraft.util.RepeatedTimer]: Run timer failed. java.lang.NumberFormatException: For input string: ":23]:8081" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.base/java.lang.Integer.parseInt(Integer.java:652) at java.base/java.lang.Integer.parseInt(Integer.java:770) at com.alipay.remoting.rpc.RpcAddressParser.parse(RpcAddressParser.java:150) at com.alipay.remoting.rpc.RpcClient.checkConnection(RpcClient.java:444) at com.alipay.remoting.rpc.RpcClient.checkConnection(RpcClient.java:438) at com.alipay.remoting.rpc.RpcClient.checkConnection(RpcClient.java:433) at com.alipay.sofa.jraft.rpc.impl.BoltRpcClient.checkConnection(BoltRpcClient.java:73) at com.alipay.sofa.jraft.rpc.impl.AbstractClientService.isConnected(AbstractClientService.java:81) at com.alipay.sofa.jraft.rpc.impl.AbstractClientService.connect(AbstractClientService.java:142) at com.alipay.sofa.jraft.core.NodeImpl.preVote(NodeImpl.java:2699) at com.alipay.sofa.jraft.core.NodeImpl.handleElectionTimeout(NodeImpl.java:638) at com.alipay.sofa.jraft.core.NodeImpl.access$1300(NodeImpl.java:141) at com.alipay.sofa.jraft.core.NodeImpl$2.onTrigger(NodeImpl.java:941) at com.alipay.sofa.jraft.util.RepeatedTimer.run(RepeatedTimer.java:86) at com.alipay.sofa.jraft.util.RepeatedTimer.lambda$schedule$0(RepeatedTimer.java:182) at com.alipay.sofa.jraft.util.timer.HashedWheelTimer$HashedWheelTimeout.expire(HashedWheelTimer.java:613) at com.alipay.sofa.jraft.util.timer.HashedWheelTimer$HashedWheelBucket.expireTimeouts(HashedWheelTimer.java:681) at com.alipay.sofa.jraft.util.timer.HashedWheelTimer$Worker.run(HashedWheelTimer.java:399) at java.base/java.lang.Thread.run(Thread.java:834)

fengjiachun commented 3 weeks ago

已经在 钉钉 群里回复你了,先查看并升级 bolt 的版本,这是 bolt 的报错