mirror of
https://github.com/corda/corda.git
synced 2025-02-01 00:45:59 +00:00
Increase shutdown action timeout. In some tests using driver, the shutdown
can be invoked before the notary node gets started, and the node disposal action times out, leading to unclosed message brokers and port conflicts.
This commit is contained in:
parent
29b52f66dc
commit
89b64da12b
@ -41,14 +41,14 @@ class ShutdownManager(private val executorService: ExecutorService) {
|
||||
}
|
||||
}
|
||||
|
||||
val shutdowns = shutdownActionFutures.map { Try.on { it.getOrThrow(1.seconds) } }
|
||||
val shutdowns = shutdownActionFutures.map { Try.on { it.getOrThrow(60.seconds) } }
|
||||
shutdowns.reversed().forEach {
|
||||
when (it) {
|
||||
is Try.Success ->
|
||||
try {
|
||||
it.value()
|
||||
} catch (t: Throwable) {
|
||||
log.warn("Exception while shutting down", t)
|
||||
log.warn("Exception while calling a shutdown action, this might create resource leaks", t)
|
||||
}
|
||||
is Try.Failure -> log.warn("Exception while getting shutdown method, disregarding", it.exception)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user