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

Nacos服务端启动失败但进程没有退出 #9393

Closed
YunWZ opened this issue Oct 25, 2022 · 0 comments · Fixed by #9396
Closed

Nacos服务端启动失败但进程没有退出 #9393

YunWZ opened this issue Oct 25, 2022 · 0 comments · Fixed by #9396
Labels
kind/discussion Category issues related to discussion

Comments

@YunWZ
Copy link
Contributor

YunWZ commented Oct 25, 2022

Describe the bug

nacos服务端启动失败,日志输出信息如下:

2022-10-23 15:23:38.936 ERROR 27815 - - - [main] o.s.boot.SpringApplication : Application run failed

Expected behavior
此时按照正常逻辑,进程应该退出--因为此时启动失败,并不能对外提供服务。

Actually behavior
但实际上,服务端进程即不会主动退出,也无法提供服务。其结果如下图:

nacos-server-run-failed

通过 jps 或者 top 命令也可以看到nacos进程依然存在。

How to Reproduce

将配置项中的参数改为非法字符,例如:

#现在端口只能是数字,这是个无效的配置
server.port=abc

Desktop (please complete the following information):

  • OS: MacOS Ventura
  • Version nacos-server 2.1.2
  • Module [e.g. naming/config]
  • SDK N/A
@KomachiSion KomachiSion added the kind/discussion Category issues related to discussion label Oct 26, 2022
KomachiSion pushed a commit that referenced this issue Nov 3, 2022
* 设置线程为守护线程,保证在main线程退出时应用程序能过正常关闭。

* graceful shutdown naming executetask engine.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/discussion Category issues related to discussion
Projects
None yet
2 participants