You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Aaron Riekenberg (JIRA)" <ji...@apache.org> on 2008/12/03 04:07:05 UTC

[jira] Created: (AMQ-2023) BrokerViewMBean.removeQueue does not clean up advisory topics

BrokerViewMBean.removeQueue does not clean up advisory topics
-------------------------------------------------------------

                 Key: AMQ-2023
                 URL: https://issues.apache.org/activemq/browse/AMQ-2023
             Project: ActiveMQ
          Issue Type: Bug
          Components: Broker
    Affects Versions: 5.2.0, 5.1.0
         Environment: Windows XP JDK 1.5, Ubuntu 8.10 JDK 1.6
            Reporter: Aaron Riekenberg
         Attachments: TestSubscriber.java

Using BrokerViewMBean.removeQueue to remove a queue does not clean up advisory topics for the queue.

It appears to be possible to manually remove advisory topics for the queue after the queue has been deleted using removeTopic, but this should not be necessary according to the documentation: http://activemq.apache.org/how-do-i-purge-a-queue.html

Steps to reproduce (bug happens on 5.1.0 and 5.2.0):

1. Run TestSubscriber to create a queue named TestQueue.
2. Observe in JConsole that queue TestQueue and advisory topic ActiveMQ.Advisory.Consumer.Queue.TestQueue now exist.
3. In JConsole invoke removeQueue on the BrokerViewMBean with the parameter TestQueue.
4. Observe the queue TestQueue is removed, but the advisory topic ActiveMQ.Advisory.Consumer.Queue.TestQueue still exists.

This also happens when invoking BrokerViewMBean.removeQueue programatically.  There are no message sent over TestQueue in the steps above, but this also appears to happen after messages have been sent over the queue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (AMQ-2023) BrokerViewMBean.removeQueue does not clean up advisory topics

Posted by "Kevin W Edwards (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-2023?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52184#action_52184 ] 

Kevin W Edwards commented on AMQ-2023:
--------------------------------------

We are using the mbean operation RemoveTopic to remove dynamically created topics when they are no longer needed.

If the dynamic topic is named "TestTopic" our current work around is to call RemoveTopic with the following:

  "TestTopic"

  ActiveMQ.Advisory.Producer.Topic.TestTopic"

  ActiveMQ.Advisory.Consumer.Topic.TestTopic"


Our tests work as expected... will update if I find any negative side-effects

> BrokerViewMBean.removeQueue does not clean up advisory topics
> -------------------------------------------------------------
>
>                 Key: AMQ-2023
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2023
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.1.0, 5.2.0
>         Environment: Windows XP JDK 1.5, Ubuntu 8.10 JDK 1.6
>            Reporter: Aaron Riekenberg
>         Attachments: TestSubscriber.java
>
>
> Using BrokerViewMBean.removeQueue to remove a queue does not clean up advisory topics for the queue.
> It appears to be possible to manually remove advisory topics for the queue after the queue has been deleted using removeTopic, but this should not be necessary according to the documentation: http://activemq.apache.org/how-do-i-purge-a-queue.html
> Steps to reproduce (bug happens on 5.1.0 and 5.2.0):
> 1. Run TestSubscriber to create a queue named TestQueue.
> 2. Observe in JConsole that queue TestQueue and advisory topic ActiveMQ.Advisory.Consumer.Queue.TestQueue now exist.
> 3. In JConsole invoke removeQueue on the BrokerViewMBean with the parameter TestQueue.
> 4. Observe the queue TestQueue is removed, but the advisory topic ActiveMQ.Advisory.Consumer.Queue.TestQueue still exists.
> This also happens when invoking BrokerViewMBean.removeQueue programatically.  There are no message sent over TestQueue in the steps above, but this also appears to happen after messages have been sent over the queue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (AMQ-2023) BrokerViewMBean.removeQueue does not clean up advisory topics

Posted by "Aaron Riekenberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-2023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aaron Riekenberg updated AMQ-2023:
----------------------------------

    Attachment: TestSubscriber.java

> BrokerViewMBean.removeQueue does not clean up advisory topics
> -------------------------------------------------------------
>
>                 Key: AMQ-2023
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2023
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.1.0, 5.2.0
>         Environment: Windows XP JDK 1.5, Ubuntu 8.10 JDK 1.6
>            Reporter: Aaron Riekenberg
>         Attachments: TestSubscriber.java
>
>
> Using BrokerViewMBean.removeQueue to remove a queue does not clean up advisory topics for the queue.
> It appears to be possible to manually remove advisory topics for the queue after the queue has been deleted using removeTopic, but this should not be necessary according to the documentation: http://activemq.apache.org/how-do-i-purge-a-queue.html
> Steps to reproduce (bug happens on 5.1.0 and 5.2.0):
> 1. Run TestSubscriber to create a queue named TestQueue.
> 2. Observe in JConsole that queue TestQueue and advisory topic ActiveMQ.Advisory.Consumer.Queue.TestQueue now exist.
> 3. In JConsole invoke removeQueue on the BrokerViewMBean with the parameter TestQueue.
> 4. Observe the queue TestQueue is removed, but the advisory topic ActiveMQ.Advisory.Consumer.Queue.TestQueue still exists.
> This also happens when invoking BrokerViewMBean.removeQueue programatically.  There are no message sent over TestQueue in the steps above, but this also appears to happen after messages have been sent over the queue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (AMQ-2023) BrokerViewMBean.removeQueue does not clean up advisory topics

Posted by "Rob Davies (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-2023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Davies resolved AMQ-2023.
-----------------------------

       Resolution: Fixed
    Fix Version/s: 5.3.0
         Assignee: Rob Davies

same problem as https://issues.apache.org/activemq/browse/AMQ-1255

> BrokerViewMBean.removeQueue does not clean up advisory topics
> -------------------------------------------------------------
>
>                 Key: AMQ-2023
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2023
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.1.0, 5.2.0
>         Environment: Windows XP JDK 1.5, Ubuntu 8.10 JDK 1.6
>            Reporter: Aaron Riekenberg
>            Assignee: Rob Davies
>             Fix For: 5.3.0
>
>         Attachments: TestSubscriber.java
>
>
> Using BrokerViewMBean.removeQueue to remove a queue does not clean up advisory topics for the queue.
> It appears to be possible to manually remove advisory topics for the queue after the queue has been deleted using removeTopic, but this should not be necessary according to the documentation: http://activemq.apache.org/how-do-i-purge-a-queue.html
> Steps to reproduce (bug happens on 5.1.0 and 5.2.0):
> 1. Run TestSubscriber to create a queue named TestQueue.
> 2. Observe in JConsole that queue TestQueue and advisory topic ActiveMQ.Advisory.Consumer.Queue.TestQueue now exist.
> 3. In JConsole invoke removeQueue on the BrokerViewMBean with the parameter TestQueue.
> 4. Observe the queue TestQueue is removed, but the advisory topic ActiveMQ.Advisory.Consumer.Queue.TestQueue still exists.
> This also happens when invoking BrokerViewMBean.removeQueue programatically.  There are no message sent over TestQueue in the steps above, but this also appears to happen after messages have been sent over the queue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.