[CONTROLLER-1929] Propagate TimeoutException if ActorSystem fails to terminate in time Created: 06/Feb/20 Updated: 27/Apr/20 Resolved: 22/Feb/20 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | mdsal |
| Affects Version/s: | None |
| Fix Version/s: | Magnesium, Sodium SR3, 2.0.0 |
| Type: | Bug | Priority: | Medium |
| Reporter: | Tibor Král | Assignee: | Tibor Král |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
In method close() the ActorSystemProviderImpl waits 10 seconds for the ActorSystem to terminate.
try { Await.result(actorSystem.terminate(), FiniteDuration.create(10, TimeUnit.SECONDS)); } catch (final Exception e) { LOG.warn("Error awaiting actor termination", e); }
If the timeout is reached TimeoutException is thrown. However it is immediately caught and only logged. The caller has no idea something went wrong. |