You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org> on 2009/11/10 11:50:27 UTC

[jira] Created: (QPID-2193) Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers

Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers 
---------------------------------------------------------------------------------------------------------------

                 Key: QPID-2193
                 URL: https://issues.apache.org/jira/browse/QPID-2193
             Project: Qpid
          Issue Type: New Feature
          Components: Java Management : JMX Console
    Affects Versions: 0.6
            Reporter: Robbie Gemmell
            Assignee: Robbie Gemmell
            Priority: Minor
             Fix For: 0.6


Java brokers previous to 0.6 do not support deletion of arbitrary messages, only the 'first message on the queue' at any given time. This was not exposed in the updated console due for release with 0.6 (where the broker now does support deletion of arbitrary messages). This decision was made because by its very nature the method cannot guarantee which message would be deleted when it is executed, as any queue activity could alter which message is at the head of the queue. However, users may have come to expect this method to be present, and so it should be exposed for older brokers that lack the ability to exactly specify which messages should be deleted.

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


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-2193) Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers

Posted by "Rob Godfrey (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-2193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775384#action_12775384 ] 

Rob Godfrey commented on QPID-2193:
-----------------------------------

To be fair, if you have a full understanding of the dynamic environment in which the queue resides then deleting the first message from (head of the) queue is perfectly safe.  It is only unsafe if the queue contents are changing in ways you cannot predict while you perform the operation.

A better analogy might be that previously we allowed you to take aim but don't protect you from involuntary movements of your foot placing your toes in the line of fire immediately before you pulled the trigger.  versions after 0.6 allow for an automatic targeting system which is guaranteed to avoid podiatric injury.

> Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers 
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-2193
>                 URL: https://issues.apache.org/jira/browse/QPID-2193
>             Project: Qpid
>          Issue Type: New Feature
>          Components: Java Management : JMX Console
>    Affects Versions: 0.6
>            Reporter: Robbie Gemmell
>            Assignee: Robbie Gemmell
>            Priority: Minor
>             Fix For: 0.6
>
>
> Java brokers previous to 0.6 do not support deletion of arbitrary messages, only the 'first message on the queue' at any given time. This was not exposed in the updated console due for release with 0.6 (where the broker now does support deletion of arbitrary messages). This decision was made because by its very nature the method cannot guarantee which message would be deleted when it is executed, as any queue activity could alter which message is at the head of the queue. However, users may have come to expect this method to be present, and so it should be exposed for older brokers that lack the ability to exactly specify which messages should be deleted.

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


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-2193) Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers

Posted by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-2193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12776461#action_12776461 ] 

Robbie Gemmell commented on QPID-2193:
--------------------------------------

Ive added a warning note to the confirmation dialog box :)

> Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers 
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-2193
>                 URL: https://issues.apache.org/jira/browse/QPID-2193
>             Project: Qpid
>          Issue Type: New Feature
>          Components: Java Management : JMX Console
>    Affects Versions: 0.6
>            Reporter: Robbie Gemmell
>            Assignee: Robbie Gemmell
>            Priority: Minor
>             Fix For: 0.6
>
>
> Java brokers previous to 0.6 do not support deletion of arbitrary messages, only the 'first message on the queue' at any given time. This was not exposed in the updated console due for release with 0.6 (where the broker now does support deletion of arbitrary messages). This decision was made because by its very nature the method cannot guarantee which message would be deleted when it is executed, as any queue activity could alter which message is at the head of the queue. However, users may have come to expect this method to be present, and so it should be exposed for older brokers that lack the ability to exactly specify which messages should be deleted.

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


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-2193) Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers

Posted by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-2193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775427#action_12775427 ] 

Robbie Gemmell commented on QPID-2193:
--------------------------------------

I had thought that too originaly Aidan but in retrospect I think Rob is right. We arent making it any different than it already was, and ultimately the problem goes away with newer releases which have a new and improved way of deleting anyway. Expecting people to go dig out older releases to do something they already can (even if it can be dangerous if used without due care) seems a bit unhelpful.

> Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers 
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-2193
>                 URL: https://issues.apache.org/jira/browse/QPID-2193
>             Project: Qpid
>          Issue Type: New Feature
>          Components: Java Management : JMX Console
>    Affects Versions: 0.6
>            Reporter: Robbie Gemmell
>            Assignee: Robbie Gemmell
>            Priority: Minor
>             Fix For: 0.6
>
>
> Java brokers previous to 0.6 do not support deletion of arbitrary messages, only the 'first message on the queue' at any given time. This was not exposed in the updated console due for release with 0.6 (where the broker now does support deletion of arbitrary messages). This decision was made because by its very nature the method cannot guarantee which message would be deleted when it is executed, as any queue activity could alter which message is at the head of the queue. However, users may have come to expect this method to be present, and so it should be exposed for older brokers that lack the ability to exactly specify which messages should be deleted.

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


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Resolved: (QPID-2193) Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers

Posted by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robbie Gemmell resolved QPID-2193.
----------------------------------

    Resolution: Fixed

Bulk resolution of old JMX Management Console issues 

> Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers 
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-2193
>                 URL: https://issues.apache.org/jira/browse/QPID-2193
>             Project: Qpid
>          Issue Type: New Feature
>          Components: Java Management : JMX Console
>    Affects Versions: 0.6
>            Reporter: Robbie Gemmell
>            Assignee: Robbie Gemmell
>            Priority: Minor
>             Fix For: 0.6
>
>
> Java brokers previous to 0.6 do not support deletion of arbitrary messages, only the 'first message on the queue' at any given time. This was not exposed in the updated console due for release with 0.6 (where the broker now does support deletion of arbitrary messages). This decision was made because by its very nature the method cannot guarantee which message would be deleted when it is executed, as any queue activity could alter which message is at the head of the queue. However, users may have come to expect this method to be present, and so it should be exposed for older brokers that lack the ability to exactly specify which messages should be deleted.

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


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-2193) Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers

Posted by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-2193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775445#action_12775445 ] 

Aidan Skinner commented on QPID-2193:
-------------------------------------

OK, I can see where you're coming from, we don't need to be Tufty. How about showing a quick warning the first time they do this on older brokers in any particular instance? References to appendages optional. ;)

- Aidan

> Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers 
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-2193
>                 URL: https://issues.apache.org/jira/browse/QPID-2193
>             Project: Qpid
>          Issue Type: New Feature
>          Components: Java Management : JMX Console
>    Affects Versions: 0.6
>            Reporter: Robbie Gemmell
>            Assignee: Robbie Gemmell
>            Priority: Minor
>             Fix For: 0.6
>
>
> Java brokers previous to 0.6 do not support deletion of arbitrary messages, only the 'first message on the queue' at any given time. This was not exposed in the updated console due for release with 0.6 (where the broker now does support deletion of arbitrary messages). This decision was made because by its very nature the method cannot guarantee which message would be deleted when it is executed, as any queue activity could alter which message is at the head of the queue. However, users may have come to expect this method to be present, and so it should be exposed for older brokers that lack the ability to exactly specify which messages should be deleted.

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


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Commented: (QPID-2193) Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers

Posted by "Aidan Skinner (JIRA)" <qp...@incubator.apache.org>.
    [ https://issues.apache.org/jira/browse/QPID-2193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12775383#action_12775383 ] 

Aidan Skinner commented on QPID-2193:
-------------------------------------

That seems quite dangerous to me. If we can't guarantee which message is going to be deleted, or even detect which one we're going to delete I don't think we should offer this.

Just because we've always let people shoot their foot off in the past doesn't mean we should continue to do so. 

If they really, really to keep doing that they can always use an older release. 

> Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers 
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-2193
>                 URL: https://issues.apache.org/jira/browse/QPID-2193
>             Project: Qpid
>          Issue Type: New Feature
>          Components: Java Management : JMX Console
>    Affects Versions: 0.6
>            Reporter: Robbie Gemmell
>            Assignee: Robbie Gemmell
>            Priority: Minor
>             Fix For: 0.6
>
>
> Java brokers previous to 0.6 do not support deletion of arbitrary messages, only the 'first message on the queue' at any given time. This was not exposed in the updated console due for release with 0.6 (where the broker now does support deletion of arbitrary messages). This decision was made because by its very nature the method cannot guarantee which message would be deleted when it is executed, as any queue activity could alter which message is at the head of the queue. However, users may have come to expect this method to be present, and so it should be exposed for older brokers that lack the ability to exactly specify which messages should be deleted.

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


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


[jira] Updated: (QPID-2193) Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers

Posted by "Robbie Gemmell (JIRA)" <qp...@incubator.apache.org>.
     [ https://issues.apache.org/jira/browse/QPID-2193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robbie Gemmell updated QPID-2193:
---------------------------------

    Status: Ready To Review  (was: In Progress)

> Allow deleting the first message on a queue through the JMX Management Console when connected to older brokers 
> ---------------------------------------------------------------------------------------------------------------
>
>                 Key: QPID-2193
>                 URL: https://issues.apache.org/jira/browse/QPID-2193
>             Project: Qpid
>          Issue Type: New Feature
>          Components: Java Management : JMX Console
>    Affects Versions: 0.6
>            Reporter: Robbie Gemmell
>            Assignee: Robbie Gemmell
>            Priority: Minor
>             Fix For: 0.6
>
>
> Java brokers previous to 0.6 do not support deletion of arbitrary messages, only the 'first message on the queue' at any given time. This was not exposed in the updated console due for release with 0.6 (where the broker now does support deletion of arbitrary messages). This decision was made because by its very nature the method cannot guarantee which message would be deleted when it is executed, as any queue activity could alter which message is at the head of the queue. However, users may have come to expect this method to be present, and so it should be exposed for older brokers that lack the ability to exactly specify which messages should be deleted.

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


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org