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

Failed to remove inactive destination Topic: Destination still has an active subscription

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.14.0
    • 5.15.0, 5.14.4
    • Broker
    • None

    Description

      broker setSchedulePeriodForDestinationPurge, wildcard topic subscriber and anonymous publishers to new destinations.
      Race between addDestination and markForGc and canGc

      ERROR region.RegionBroker: Failed to remove inactive destination Topic: destination=A.4725, subscriptions=1
      javax.jms.JMSException: Destination still has an active subscription: topic://A.4725
      	at org.apache.activemq.broker.region.AbstractRegion.removeDestination(AbstractRegion.java:271)
      	at org.apache.activemq.broker.region.RegionBroker.removeDestination(RegionBroker.java:354)
      	at org.apache.activemq.broker.BrokerFilter.removeDestination(BrokerFilter.java:179)
      	at org.apache.activemq.broker.BrokerFilter.removeDestination(BrokerFilter.java:179)
      	at org.apache.activemq.broker.BrokerFilter.removeDestination(BrokerFilter.java:179)
      	at org.apache.activemq.broker.region.RegionBroker.purgeInactiveDestinations(RegionBroker.java:897)
      	at org.apache.activemq.broker.region.RegionBroker$1.run(RegionBroker.java:118)
      	at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
      	at java.util.TimerThread.mainLoop(Timer.java:555)
      	at java.util.TimerThread.run(Timer.java:505)
      

      Attachments

        Issue Links

          Activity

            People

              gtully Gary Tully
              gtully Gary Tully
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: