Issue: Future timed out after [60 seconds] in Release

Issue

We end up with a future timeout after [60seconds]. These are the below logs seen, 

2022-02-10 12:44:42.457 [qtp1507466717-47] {method=POST, request=/tasks/Foldera3019eb58cdf4ed
7919db3880a7a01f4-Release09585167da954694bccc020b3fcd04ef-Phase868ebc80203440129f6baff7eee96
af5-Task560f95fd11c84429b38f540e0eb9f455/retry, username=prerna.sharma@zurich.com} ERROR c.x.
x.actors.ReleaseActorService - Got TimeoutException in askAndAwait Applications/Foldera3019eb
58cdf4ed7919db3880a7a01f4/Release09585167da954694bccc020b3fcd04ef/Phase868ebc80203440129f6baff
7eee96af5/Task560f95fd11c84429b38f540e0eb9f455 RetryTask(Applications/Foldera3019eb58cdf4ed7919
db3880a7a01f4/Release09585167da954694bccc020b3fcd04ef/Phase868ebc80203440129f6baff7eee96af5
/Task560f95fd11c84429b38f540e0eb9f455,test)
java.util.concurrent.TimeoutException: Future timed out after [60 seconds]
 at scala.concurrent.impl.Promise$DefaultPromise.tryAwait0(Promise.scala:212)
........................
2022-02-10 12:44:42.460 [qtp1507466717-47] {method=POST, request=/tasks/Foldera3019eb58cdf4ed79
19db3880a7a01f4-Release09585167da954694bccc020b3fcd04ef-Phase868ebc80203440129f6baff7eee96
af5-Task560f95fd11c84429b38f540e0eb9f455/retry, username=prerna.sharma@zurich.com} ERROR c.x.
d.r.m.UnhandledExceptionMapper - Unhandled Exception: {}
java.lang.RuntimeException: java.util.concurrent.TimeoutException: Future timed out after
[60 seconds]
at com.xebialabs.xlrelease.actors.ReleaseActorService.askAndAwait(ReleaseActorService.scala:84)
............
Caused by: java.util.concurrent.TimeoutException: Future timed out after [60 seconds]
 at scala.concurrent.impl.Promise$DefaultPromise.tryAwait0(Promise.scala:212)

Cause

The future timeout means the release actor started a thread to do something (usually an automated task) but did not receive a response after 60 seconds.

Workaround/Resolution Action

You can increase the timeout by editing the ~/conf/xl-release.conf and changing the value of xl.timeouts.releaseActionResponse. The default value is 60 seconds; you may change to any value depending on your requirement. Please see the example below:

xl {
...
reporting {
db-driver-classname=
db-password=
db-url=
db-username=
}
timeouts {
releaseActionResponse = 120 seconds
}

}

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.