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

SelectorManager Executor is not shutdown when transport os stopped.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.13.1, 5.14.0
    • None
    • None
    • Patch Available

    Description

      SelectorManager creates an Executor that is not shut down on termination of the Transport.

      The Executor currently uses non-daemon threads and is is not guaranteed the the SelectorWorker thread exit condition is ever met.

      This causes the shutdown to hang when using transports that utilise the SelectorManager, such as nio+ssl for example.

      The proposed patch shuts down the ExecutorService on/after Transport shutdown. The SelectorWorkers also check for this as an exit condition.

      Attachments

        1. SelectorManager.Shutdown.patch
          9 kB
          Andy Gumbrecht

        Activity

          People

            tabish Timothy A. Bish
            andyg Andy Gumbrecht
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: