Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-4532

shutdown of VMTransportServer should report disposed exception to peer pending requests

    XMLWordPrintableJSON

Details

    Description

      When a broker is shutdown all transport connectors are shutdown ok. However a vm client with pending asyncRequests does not get a notification of the peer (server in this case) shutdown and waits for ever.
      This is noticeable in camel routes that do graceful shutdown from a shutdown hook when there are pending requests.

      The current shutdown/stop logic sends a shutdowninfo which works fine when the client initiates the stop but shutdown in not processed by a client.
      A simple fix is to propagate a shutdown/disposed exception that clients will respond to and error out any pending futures.

      Attachments

        Activity

          People

            gtully Gary Tully
            gtully Gary Tully
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: