[ 
https://issues.apache.org/jira/browse/AMQ-5869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14624801#comment-14624801
 ] 

John Leach commented on AMQ-5869:
---------------------------------

I'm not a java dev so aren't really geared up for writing test cases, sorry.

More information though: this appears to be causing us problems (other than 
just the logging) that we're having trouble putting our finger on. It looks a 
bit like a message is stuck over on one amq instance and isn't making it to the 
consumer on the other side of the bridge.

Shutting down either one of the instances (so that all producers and consumers 
are on just one amq instance) and rerunning out tests fixes our problem and 
this log message goes away.

We've also tried wiping out the on-disk db on both instances, but the problem 
reoccurs when we run out tests so this doesn't look like an old data problem.

We've downgraded back to 5.9.1 and the exception logging and the bridging 
problem have gone away.

> Failed to remove inactive destination: Destination still has an active 
> subscription
> -----------------------------------------------------------------------------------
>
>                 Key: AMQ-5869
>                 URL: https://issues.apache.org/jira/browse/AMQ-5869
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.11.1
>         Environment: openjdk-7u79
> linux
> i386
>            Reporter: John Leach
>            Priority: Minor
>
> I have two amq brokers, bridged together with consumers connected to both.
> And a destination policy configured like this:
> <policyEntry topic=">" producerFlowControl="true" memoryLimit="1mb" 
> gcInactiveDestinations="true" inactiveTimoutBeforeGC="30000">
> I've been running them for years, upgrading through the 5.x releases.
> I just upgraded to 5.11.1 (and had to also upgrade from openjdk-6 to 
> openjdk-7 to do so) and are seeing an exception being logged every 10 seconds:
> Jun 30 10:28:10 srv-zvbod activemq:  INFO | 
> ActiveMQ.Advisory.Consumer.Queue.DB.dbs-yafwc.srv-8ra75 Inactive for longer 
> than 30000 ms - removing ...
> Jun 30 10:28:10 srv-zvbod activemq: ERROR | Failed to remove inactive 
> destination org.apache.activemq.security.AuthorizationDestinationFilter@91c406
> Jun 30 10:28:10 srv-zvbod activemq: javax.jms.JMSException: Destination still 
> has an active subscription: 
> topic://ActiveMQ.Advisory.Consumer.Queue.DB.dbs-yafwc.srv-8ra75
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.broker.region.AbstractRegion.removeDestination(AbstractRegion.java:194)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.broker.jmx.ManagedTopicRegion.removeDestination(ManagedTopicRegion.java:62)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.broker.region.RegionBroker.removeDestination(RegionBroker.java:363)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.broker.BrokerFilter.removeDestination(BrokerFilter.java:177)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.broker.BrokerFilter.removeDestination(BrokerFilter.java:177)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.advisory.AdvisoryBroker.removeDestination(AdvisoryBroker.java:225)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.broker.BrokerFilter.removeDestination(BrokerFilter.java:177)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.broker.BrokerFilter.removeDestination(BrokerFilter.java:177)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.security.AbstractAuthenticationBroker.removeDestination(AbstractAuthenticationBroker.java:38)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.broker.BrokerFilter.removeDestination(BrokerFilter.java:177)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.security.AuthorizationBroker.removeDestination(AuthorizationBroker.java:129)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.broker.BrokerFilter.removeDestination(BrokerFilter.java:177)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.broker.MutableBrokerFilter.removeDestination(MutableBrokerFilter.java:182)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.broker.region.RegionBroker.purgeInactiveDestinations(RegionBroker.java:907)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.broker.region.RegionBroker$1.run(RegionBroker.java:118)[activemq-broker-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)[activemq-client-5.11.1.jar:5.11.1]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> java.util.TimerThread.mainLoop(Timer.java:555)[:1.7.0_79]
> Jun 30 10:28:10 srv-zvbod activemq: #011at 
> java.util.TimerThread.run(Timer.java:505)[:1.7.0_79]
> as more and more of these topics are being created, I'm seeing more 
> exceptions listed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to