You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Dexter Tad-y (JIRA)" <ji...@apache.org> on 2008/07/30 22:50:00 UTC
[jira] Created: (AMQ-1874) Added additional Stomp SUBSCRIBE ack
mode for acknowledging out-of-order individual message-IDs
Added additional Stomp SUBSCRIBE ack mode for acknowledging out-of-order individual message-IDs
-----------------------------------------------------------------------------------------------
Key: AMQ-1874
URL: https://issues.apache.org/activemq/browse/AMQ-1874
Project: ActiveMQ
Issue Type: New Feature
Components: Transport
Environment: Ubuntu Hardy 8.04.1, Linux ig-dexter 2.6.24-20-generic #1 SMP Mon Jul 28 13:49:52 UTC 2008 i686 GNU/Linux
Reporter: Dexter Tad-y
Fix For: 5.2.0
Attachments: stomp-client-individual.patch
Current Behavior:
Given that a Stomp client SUBSCRIBEs to a queue with the ack mode set to 'client';
Scenario 1:
Some producer send messages and the Stomp Subscriber receives the ff. messages in order:
Msg1
Msg2
Msg3
ACK Msg1 will acknowledge just Msg1. This is a simple and obvious behavior.
ACK Msg2, ACK Msg3 should behave normal.
====
Scenario 2:
Some producer send messages and the Stomp Subscriber receives the ff. messages in order:
Msg1
Msg2
Msg3
Trying to do an ACK Msg2 will acknowledge both Msg1 and Msg2. Any attempt to ACK Msg1 will result in an Unexpected ACK error frame.
ACK Msg3 will succeed.
====
Scenario 3:
Again, some producer send messages and the Stomp Subscriber receives the ff. messages in order:
Msg1
Msg2
Msg3
Trying to ACK Msg3 will acknowledge ALL messages at once. ACK Msg2 or Msg 1 will raise an exception if attempted.
====
The Stomp specs at http://stomp.codehaus.org/Protocol does not detail the ack behavior nor does it recommend or hint anything.
Proposed Patch:
Introduce a new ack mode in Stomp SUBSCRIBE header:
In the attached patch, the chosen header is called 'client-individual'; to reflect that ACKs are still client initiated PLUS "individual" to
declare that the client intends to acknowledge individual messages by message-id, not in batches as with simple 'client' ack mode.
Kindly suggest a another header name if you can think of a more appropriate one.
References:
https://issues.apache.org/activemq/browse/AMQ-1732
Thank you.
===========
Dexter Tad-y
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (AMQ-1874) Added additional Stomp SUBSCRIBE ack
mode for acknowledging out-of-order individual message-IDs
Posted by "Rob Davies (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/AMQ-1874?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rob Davies resolved AMQ-1874.
-----------------------------
Assignee: Rob Davies
Resolution: Fixed
Patch applied in SVN revision 692183
> Added additional Stomp SUBSCRIBE ack mode for acknowledging out-of-order individual message-IDs
> -----------------------------------------------------------------------------------------------
>
> Key: AMQ-1874
> URL: https://issues.apache.org/activemq/browse/AMQ-1874
> Project: ActiveMQ
> Issue Type: New Feature
> Components: Transport
> Environment: Ubuntu Hardy 8.04.1, Linux ig-dexter 2.6.24-20-generic #1 SMP Mon Jul 28 13:49:52 UTC 2008 i686 GNU/Linux
> Reporter: Dexter Tad-y
> Assignee: Rob Davies
> Fix For: 5.2.0
>
> Attachments: stomp-client-individual.patch
>
> Original Estimate: 3 weeks, 3 days, 6 hours
> Remaining Estimate: 3 weeks, 3 days, 6 hours
>
> Current Behavior:
> Given that a Stomp client SUBSCRIBEs to a queue with the ack mode set to 'client';
> Scenario 1:
> Some producer send messages and the Stomp Subscriber receives the ff. messages in order:
> Msg1
> Msg2
> Msg3
> ACK Msg1 will acknowledge just Msg1. This is a simple and obvious behavior.
> ACK Msg2, ACK Msg3 should behave normal.
> ====
> Scenario 2:
> Some producer send messages and the Stomp Subscriber receives the ff. messages in order:
> Msg1
> Msg2
> Msg3
>
> Trying to do an ACK Msg2 will acknowledge both Msg1 and Msg2. Any attempt to ACK Msg1 will result in an Unexpected ACK error frame.
> ACK Msg3 will succeed.
> ====
> Scenario 3:
> Again, some producer send messages and the Stomp Subscriber receives the ff. messages in order:
> Msg1
> Msg2
> Msg3
> Trying to ACK Msg3 will acknowledge ALL messages at once. ACK Msg2 or Msg 1 will raise an exception if attempted.
> ====
> The Stomp specs at http://stomp.codehaus.org/Protocol does not detail the ack behavior nor does it recommend or hint anything.
> Proposed Patch:
> Introduce a new ack mode in Stomp SUBSCRIBE header:
> In the attached patch, the chosen header is called 'client-individual'; to reflect that ACKs are still client initiated PLUS "individual" to
> declare that the client intends to acknowledge individual messages by message-id, not in batches as with simple 'client' ack mode.
> Kindly suggest a another header name if you can think of a more appropriate one.
> References:
> https://issues.apache.org/activemq/browse/AMQ-1732
> Thank you.
> ===========
> Dexter Tad-y
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.