Skip to content

Commit

Permalink
JPERF-1081: Extend AsyncProfiler stop timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
dagguh committed May 17, 2023
1 parent 487fd88 commit e919ca2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,10 @@ Dropping a requirement of a major version of a dependency is a new contract.

### Fixed
- Wait until Docker is started before pulling images. Fix [JPERF-1104].
- Extend `AsyncProfiler` `stop` timeout. Fix [JPERF-1081].

[JPERF-1104]: https://ecosystem.atlassian.net/browse/JPERF-1104
[JPERF-1081]: https://ecosystem.atlassian.net/browse/JPERF-1081

## [4.24.1] - 2023-05-10
[4.24.1]: https://github.com/atlassian/infrastructure/compare/release-4.24.0...release-4.24.1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.atlassian.performance.tools.infrastructure.api.process.RemoteMonitori
import com.atlassian.performance.tools.jvmtasks.api.IdempotentAction
import com.atlassian.performance.tools.jvmtasks.api.StaticBackoff
import com.atlassian.performance.tools.ssh.api.SshConnection
import java.time.Duration
import java.time.Duration.ofSeconds

/**
Expand Down Expand Up @@ -39,7 +40,7 @@ class AsyncProfiler : Profiler {
private val flameGraphFile = "flamegraph.svg"

override fun stop(ssh: SshConnection) {
ssh.execute("$script stop $pid -o flamegraph > $flameGraphFile")
ssh.execute("$script stop $pid -o flamegraph > $flameGraphFile", timeout = ofSeconds(50))
}

override fun getResultPath(): String {
Expand Down

0 comments on commit e919ca2

Please sign in to comment.