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

Propagate TimeoutException if ActorSystem fails to terminate in time

    XMLWordPrintable

Details

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

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: