Closed
Description
Issue Description
Type: bug report
Describe what happened (or what feature you want)
Jraft produce a lot of "java.lang.NullPointerException: null" after server exceptionally shutdown
Describe what you expected to happen
How to reproduce it (as minimally and precisely as possible)
...
2022-10-08 18:14:28,619 ERROR Failed to join the cluster, retry...
java.lang.NullPointerException: null
at com.alipay.sofa.jraft.core.CliServiceImpl.getLeader(CliServiceImpl.java:478)
at com.alipay.sofa.jraft.core.CliServiceImpl.getPeers(CliServiceImpl.java:629)
at com.alipay.sofa.jraft.core.CliServiceImpl.getPeers(CliServiceImpl.java:524)
at com.alibaba.nacos.core.distributed.raft.JRaftServer.registerSelfToCluster(JRaftServer.java:353)
at com.alibaba.nacos.core.distributed.raft.JRaftServer.lambda$createMultiRaftGroup$0(JRaftServer.java:264)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
...
Tell us your environment
nacos 2.1.1
jdk 1.8.0_345