Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-161

Graceful shutdown: add a timeout to stop Artemis

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Do
    • 1.0.0
    • None
    • Broker
    • None

    Description

      We want to provide a graceful shutdown for Artemis to leave some time for JMS clients to finish their work before stopping the server.

      This is also covered by ARTEMIS-72 which deals with refusing new remote connections once the shutdown process is started (while keeping in-vm connections opened).

      This issue is about specifying a timeout when stopping the ActiveMQServer.
      It is possible to provide a general shutdown timeout in the server configuration but this is not suitable.
      A shutdown process is contextual: it may be a quick shutdown in case of emergency (with a timeout of some seconds) or a long timeout (several hours) in case of planned upgrade for example.
      This parameter should be specified when the admin starts the shutdown process and be passed to the ActiveMQServer (and its wrapping JMSServerManger) stop() method.

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              jmesnil Jeff Mesnil
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: