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

Temporary destinations not being cleaned up upon delete() when using network of brokers

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.1.0
    • 5.1.0
    • Broker
    • None
    • N/A

    Description

      When deleting a temp destination a DestinationInfo object is sent signifying the deletion to brokers. These are not deleted immediately but are instead put into the cachedDestinations map in AbstractTempRegion. Upon the regular scheduled doPurge call any that are older than a minute are disposed of, however, calling remove on the cache map returns nothing because the key object, CachedDestination has a bug inside the equals method in the instanceof check and the temp destinations stick around and are never disposed of

      if (o instanceof ActiveMQDestination) {

      Should be

      if (o instanceof CachedDestination ) {

      Attachments

        Activity

          People

            rajdavies Robert Davies
            aricooperman Ari Cooperman
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: