[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. 
This exception should be propagated.


Generated at Wed Feb 07 19:56:48 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.