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

jvm退出关闭数据库文件失效 #627

Open
jcjgithub opened this issue Apr 25, 2023 · 2 comments
Open

jvm退出关闭数据库文件失效 #627

jcjgithub opened this issue Apr 25, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@jcjgithub
Copy link

Describe the bug
jvm退出关闭数据库文件失效

To Reproduce
Steps to reproduce the behavior.

Expected behavior
A clear and concise description of what you expected to happen.

Environment

  • PowerJob Version: 4.2.0
  • Java Version: jdk1.8
  • OS:centos7

Screenshots
image
image
采用的 nohup java -jar 形式启动的 ,停止采用的 是kill PID命令。
麻烦解答下 不知道是不是我操作有问题

Additional context
Add any other context about the problem here.

@jcjgithub jcjgithub added the bug Something isn't working label Apr 25, 2023
@KFCFans
Copy link
Member

KFCFans commented May 7, 2023

下个版本先加一行日志,看看有没有执行到。
理论上 JVM 的 exit hook 就算是 kill 命令也是会回调的。
还有一种可能是 kill -9 这种强杀指令,让 JVM 没有时间跑完删除操作。

@jcjgithub
Copy link
Author

我用的是kill 命令 没有强制kill

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants