Uploaded image for project: 'controller'
  1. controller
  2. CONTROLLER-1929

Propagate TimeoutException if ActorSystem fails to terminate in time

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Medium Medium
    • Magnesium, Sodium SR3, 2.0.0
    • None
    • mdsal
    • None

      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.

            tibor.kral Tibor Král
            tibor.kral Tibor Král
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: