Skip to content

Commit d110ba8

Browse files
Konrad Marszalekmzyromski-atlassian
Konrad Marszalek
authored andcommitted
JPERF-188: Improve stopJira to wait for Jira process to shutdown instead of all Java processes on the node
1 parent 15efbcd commit d110ba8

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Dropping a requirement of a major version of a dependency is a new contract.
2828
- Dial down the provisioning logging amount.
2929
- Enrich the provisioning logging messages.
3030
- Fix `UriJiraFormula` failing to download results due to zero nodes and zero threads.
31+
- Improve `stopJira` to wait only for Jira process shutdown instead of all Java processes
3132

3233
[JPERF-595]: https://ecosystem.atlassian.net/browse/JPERF-595
3334

src/main/kotlin/com/atlassian/performance/tools/awsinfrastructure/api/CustomDatasetSource.kt

+4-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ class CustomDatasetSource(
8888

8989
private fun stopJira(host: SshHost) {
9090
val shutdownTomcat = "echo SHUTDOWN | nc localhost 8005"
91-
val waitForNoJavaProcess = "while ps -C java -o pid=; do sleep 5; done"
92-
Ssh(host, connectivityPatience = 4).newConnection().use { it.safeExecute("$shutdownTomcat && $waitForNoJavaProcess", Duration.ofMinutes(3)) }
91+
val waitForNoJiraProcess = "while pgrep -f jira; do sleep 5; done"
92+
Ssh(host, connectivityPatience = 4).newConnection().use {
93+
it.safeExecute("$shutdownTomcat && $waitForNoJiraProcess", Duration.ofMinutes(3))
94+
}
9395
}
9496

9597
private fun stopDockerContainers(host: SshHost) {

0 commit comments

Comments
 (0)