ActiveMQ
  1. ActiveMQ
  2. AMQ-2349

Temporary destinations created with PooledConnectionFactory never get deleted

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.6.0
    • Component/s: Broker
    • Labels:
      None

      Description

      Temporary destinations that created are bound to the underlying connection. If the connection is destroyed, then the temp destinations that bound to the connection will be destroyed.

      In the case that a PooledConnectionFactory is used, the underlying connection won't be destroyed even though PooledConnection.close() is called. Instead it is returned back to the pool. Thus, the temp desinations that created would never be destroyed and all of them would be accumulated until the connection is destroyed.

      We should delete the temp destinations every time when the PooledConnection.close() is called to avoid accumulation of the temporary destinations.

        Activity

        Hide
        Timothy Bish added a comment -

        Patch applied with some small modifications, Thanks!

        Show
        Timothy Bish added a comment - Patch applied with some small modifications, Thanks!

          People

          • Assignee:
            Timothy Bish
            Reporter:
            Joe Luo
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development