You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/01/28 00:33:55 UTC
[GitHub] [dolphinscheduler] wcmolin opened a new issue #8230: [Bug] [dolphinscheduler-server] MasterServer and WorkerServer cannot be stopped gracefully
wcmolin opened a new issue #8230:
URL: https://github.com/apache/dolphinscheduler/issues/8230
### Search before asking
- [X] I had searched in the [issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and found no similar issues.
### What happened
When I use `IntelliJ IDEA` to debug the `MasterServer`, I try to stop it and it doesn't always stop. After my debugging, I found that at the end of the `close` method in the class `MasterServer`, there is a line of `System.exit(1)`. If I comment it out, I can successfully stop the service. I tested the binary version of the service again and got the same problem, because it took too long to stop and was force-killed with the `kill -9` command.
```
[dolphinscheduler@slave1 dolphinscheduler]$ sh bin/stop-all.sh
192.168.0.98:default
192.168.0.98 master server is stopping
Begin stop master-server......
stopping master-server
master-server did not stop gracefully after 70 seconds: killing with kill -9
End stop master-server.
192.168.0.98 worker server is stopping
Begin stop worker-server......
stopping worker-server
worker-server did not stop gracefully after 70 seconds: killing with kill -9
End stop worker-server.
Begin stop logger-server......
stopping logger-server
End stop logger-server.
Begin stop alert-server......
no alert-server to stop
End stop alert-server.
192.168.0.98 worker server is stopping
Begin stop api-server......
no api-server to stop
End stop api-server.
192.168.0.98 python gateway server is stopping
Begin stop python-gateway-server......
no python-gateway-server to stop
End stop python-gateway-server.
query server status
```
environment:
- os: macOs Big Sur 11.5.2
- jdk version: 1.8
### What you expected to happen
The service is stopped gracefully
### How to reproduce
1. Clone the source code and checkout to the `2.0.2-release` branch
2. use the IntelliJ IDEA to open the project, debug the WorkerServer,
3. click the stop button, wait for more than 60s, and the program still does not stop
### Anything else
There should be this problem with versions over 2.0.2-release
Here are two reference links:
- [what-happens-if-system-exit-is-called-from-a-shutdown-hook](https://stackoverflow.com/questions/19552358/what-happens-if-system-exit-is-called-from-a-shutdown-hook)
- [deadlock-in-java-shutdown-hook](https://stackoverflow.com/questions/25204615/deadlock-in-java-shutdown-hook)
### Version
2.0.2
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #8230: [Bug] [dolphinscheduler-server] MasterServer and WorkerServer cannot be stopped gracefully
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #8230:
URL: https://github.com/apache/dolphinscheduler/issues/8230#issuecomment-1074548911
This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] github-actions[bot] closed issue #8230: [Bug] [dolphinscheduler-server] MasterServer and WorkerServer cannot be stopped gracefully
Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #8230:
URL: https://github.com/apache/dolphinscheduler/issues/8230
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] caishunfeng commented on issue #8230: [Bug] [dolphinscheduler-server] MasterServer and WorkerServer cannot be stopped gracefully
Posted by GitBox <gi...@apache.org>.
caishunfeng commented on issue #8230:
URL: https://github.com/apache/dolphinscheduler/issues/8230#issuecomment-1035878453
Hi @wcmolin Any progress of this issue?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] wcmolin commented on issue #8230: [Bug] [dolphinscheduler-server] MasterServer and WorkerServer cannot be stopped gracefully
Posted by GitBox <gi...@apache.org>.
wcmolin commented on issue #8230:
URL: https://github.com/apache/dolphinscheduler/issues/8230#issuecomment-1035898280
> 嗨@wcmolin这个问题有什么进展吗?
sorry i don't know how to fix it
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #8230: [Bug] [dolphinscheduler-server] MasterServer and WorkerServer cannot be stopped gracefully
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #8230:
URL: https://github.com/apache/dolphinscheduler/issues/8230#issuecomment-1023769666
Hi:
* Thank you for your feedback, we have received your issue, Please wait patiently for a reply.
* In order for us to understand your request as soon as possible, please provide detailed information、version or pictures.
* If you haven't received a reply for a long time, you can subscribe to the developer's email,Mail subscription steps reference https://dolphinscheduler.apache.org/en-us/community/development/subscribe.html ,Then write the issue URL in the email content and send question to dev@dolphinscheduler.apache.org.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [dolphinscheduler] github-actions[bot] commented on issue #8230: [Bug] [dolphinscheduler-server] MasterServer and WorkerServer cannot be stopped gracefully
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #8230:
URL: https://github.com/apache/dolphinscheduler/issues/8230#issuecomment-1066217090
This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org