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

JMS Pool reconnection logic not always reliable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.13.0, 5.13.1, 5.13.2, 5.13.3
    • Fix Version/s: 5.13.4, 5.14.0
    • Component/s: activemq-pool, JMS client
    • Labels:
      None

      Description

      The reconnect on exception configuration setting in the JMS pool relies on an exception being thrown from the ExceptionListener to signal a reconnect needed. This can miss an exception thrown from the start method when the initial connection attempt is being made and things like security exceptions trigger connection failure. Even if the exception is given to the listener it happens asynchronously which means the pool will be handling out known broken connection instances until the listener gets around to running the close logic.

      For the start method we should also be handling the exception in ConnectionPool and checking for the reconnect on exception flag to indicate a failure has occurred and the Connection should be closed and evicted from the pool.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tabish121 Timothy Bish
                Reporter:
                tabish121 Timothy Bish
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: