-
Notifications
You must be signed in to change notification settings - Fork 28
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
JPERF-188: Improve stopJira to wait for Jira process to shutdown inst… #84
base: master
Are you sure you want to change the base?
Conversation
…ead of all Java processes on the node
e0c6c0a
to
d110ba8
Compare
This is #82 adopted by @mzyromski-atlassian to cover the CI.
/cc @KonradMarszalek |
@@ -88,8 +88,10 @@ class CustomDatasetSource( | |||
|
|||
private fun stopJira(host: SshHost) { | |||
val shutdownTomcat = "echo SHUTDOWN | nc localhost 8005" | |||
val waitForNoJavaProcess = "while ps -C java -o pid=; do sleep 5; done" | |||
Ssh(host, connectivityPatience = 4).newConnection().use { it.safeExecute("$shutdownTomcat && $waitForNoJavaProcess", Duration.ofMinutes(3)) } | |||
val waitForNoJiraProcess = "while pgrep -f jira; do sleep 5; done" |
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.
Gotta fix that infinite loop from CI
It seems there are more processes with |
Alternatively we could read PID from the PID file. |
…ead of all Java processes on the node