Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jraft produce a lot of "java.lang.NullPointerException: null" after server exceptionally shutdown #9271

Closed
yann9 opened this issue Oct 8, 2022 · 0 comments · Fixed by #9272
Labels
kind/enhancement Category issues or prs related to enhancement.
Milestone

Comments

@yann9
Copy link
Contributor

yann9 commented Oct 8, 2022

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

@yann9 yann9 changed the title Jraft Jraft produce a lot of "java.lang.NullPointerException: null" after server exceptionally shutdown Oct 8, 2022
yann9 pushed a commit to yann9/nacos that referenced this issue Oct 8, 2022
@KomachiSion KomachiSion added this to the 2.1.2 milestone Oct 10, 2022
@KomachiSion KomachiSion added the kind/enhancement Category issues or prs related to enhancement. label Oct 10, 2022
KomachiSion pushed a commit that referenced this issue Oct 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Category issues or prs related to enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants