-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[Spark-5889] Remove pid file after stopping service. #4676
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
Conversation
|
Test build #27685 has started for PR 4676 at commit
|
|
Test build #27685 has finished for PR 4676 at commit
|
|
Test PASSed. |
sbin/spark-daemon.sh
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Concretely, can there be an if statement here to check whether kill succeeded, and only rm if so?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a more concise way to do this is kill ... && rm -rf $pid I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it occurs to me that this doesn't even guarantee the process was killed, but that the signal was sent. Well, I kind of like kill ... && rm -f $pid and would vote for merging that.
|
@srowen @andrewor14 Changed to kill "$TARGET_ID" && rm -f $pid. Thanks. |
|
Test build #27747 has started for PR 4676 at commit
|
|
@zhzhan I apologize for the extra round trip on this simple change, but it occurs to me that we should quote |
|
Test FAILed. |
|
(Test failure looks like a Jenkins network problem; ignore it) |
|
@srowen No problem. Thanks for the explanation, and that's a valid one. |
|
Test build #27753 has started for PR 4676 at commit
|
Currently the pid file is not deleted, and potentially may cause some problem after service is stopped. The fix remove the pid file after service stopped. Author: Zhan Zhang <[email protected]> Closes #4676 from zhzhan/spark-5889 and squashes the following commits: eb01be1 [Zhan Zhang] solve review comments b4c009e [Zhan Zhang] solve review comments 018110a [Zhan Zhang] spark-5889: remove pid file after stopping service 088d2a2 [Zhan Zhang] squash all commits c1f1fa5 [Zhan Zhang] test (cherry picked from commit ad6b169) Signed-off-by: Sean Owen <[email protected]>
Currently the pid file is not deleted, and potentially may cause some problem after service is stopped. The fix remove the pid file after service stopped. Author: Zhan Zhang <[email protected]> Closes #4676 from zhzhan/spark-5889 and squashes the following commits: eb01be1 [Zhan Zhang] solve review comments b4c009e [Zhan Zhang] solve review comments 018110a [Zhan Zhang] spark-5889: remove pid file after stopping service 088d2a2 [Zhan Zhang] squash all commits c1f1fa5 [Zhan Zhang] test (cherry picked from commit ad6b169) Signed-off-by: Sean Owen <[email protected]>
|
Test build #27753 has finished for PR 4676 at commit
|
|
Test PASSed. |
|
Test build #27747 timed out for PR 4676 at commit |
|
Test FAILed. |
Currently the pid file is not deleted, and potentially may cause some problem after service is stopped. The fix remove the pid file after service stopped. Author: Zhan Zhang <[email protected]> Closes apache#4676 from zhzhan/spark-5889 and squashes the following commits: eb01be1 [Zhan Zhang] solve review comments b4c009e [Zhan Zhang] solve review comments 018110a [Zhan Zhang] spark-5889: remove pid file after stopping service 088d2a2 [Zhan Zhang] squash all commits c1f1fa5 [Zhan Zhang] test (cherry picked from commit ad6b169) Signed-off-by: Sean Owen <[email protected]>
Currently the pid file is not deleted, and potentially may cause some problem after service is stopped. The fix remove the pid file after service stopped.