You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Gary Tully (JIRA)" <ji...@apache.org> on 2009/01/28 19:38:59 UTC

[jira] Resolved: (AMQ-2087) Redelivery after rollback does not seem to work well

     [ https://issues.apache.org/activemq/browse/AMQ-2087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully resolved AMQ-2087.
-----------------------------

    Resolution: Working as Designed

This is a case of amq treating delivery as delivery to the consumer session rather than to the actual consumer implementation. In the test case, all of the 10 messages get redelivered to each consumer and they very quickly reach the default max redelivery count of 6 and get sent to the DLQ!

one solution is to configure the redelivery policy:
{code}ConnectionFactory connectionFactory =
     new ActiveMQConnectionFactory("vm://localhost?jms.redeliveryPolicy.maximumRedeliveries=100");
 {code}

An alternative is to use prefetch=0 so that each consumer will only get what it can use.

There are a bunch of related open issues on this behavior, with the wire format change in 6.0 it will be possible to address this. A subscription remove command needs to indicate to the broker the last delivered ack that it has produced. An alternative is that the subscription trys to keep track of this information (which may be simpler).

Is it ok to close this as there are so many open related issues: see: https://issues.apache.org/activemq/secure/IssueNavigator.jspa?reset=true&&query=redelivery&summary=true&description=true&body=true&type=1&pid=10520&status=1 

> Redelivery after rollback does not seem to work well 
> -----------------------------------------------------
>
>                 Key: AMQ-2087
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2087
>             Project: ActiveMQ
>          Issue Type: Bug
>    Affects Versions: 5.2.0
>            Reporter: Guillaume Nodet
>            Assignee: Gary Tully
>             Fix For: 5.3.0
>
>         Attachments: AMQ-2087.test.diff
>
>


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


Re: [jira] Resolved: (AMQ-2087) Redelivery after rollback does not seem to work well

Posted by Bruce Snyder <br...@gmail.com>.
On Tue, May 12, 2009 at 3:10 AM, Gary Tully <ga...@gmail.com> wrote:
> The change to version 5 that is currently on trunk. The details are
> contained in https://issues.apache.org/activemq/browse/AMQ-2087
> RemoveInfo has an additional attribute that tracks the last delivered
> message so that the redelivery count can remain accurate after a
> repeat prefetch dispatch.

Ah, that change is labeled v5 of openwire so I thought that there were
more changes beyond that afoot.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder

Re: [jira] Resolved: (AMQ-2087) Redelivery after rollback does not seem to work well

Posted by Gary Tully <ga...@gmail.com>.
The change to version 5 that is currently on trunk. The details are
contained in https://issues.apache.org/activemq/browse/AMQ-2087
RemoveInfo has an additional attribute that tracks the last delivered
message so that the redelivery count can remain accurate after a
repeat prefetch dispatch.

2009/5/11 Bruce Snyder <br...@gmail.com>:
> On Wed, Jan 28, 2009 at 12:38 PM, Gary Tully (JIRA) <ji...@apache.org> wrote:
>
>> There are a bunch of related open issues on this behavior, with the wire format change
>> in 6.0 it will be possible to address this. A subscription remove command needs to
>> indicate to the broker the last delivered ack that it has produced. An alternative is that
>> the subscription trys to keep track of this information (which may be simpler).
>
> To what changes are you referring regarding the wire format change in
> ActiveMQ 6.0? I've not heard of anything related to this?
>
> Bruce
> --
> perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
> );'
>
> ActiveMQ in Action: http://bit.ly/2je6cQ
> Blog: http://bruceblog.org/
> Twitter: http://twitter.com/brucesnyder
>



-- 
http://blog.garytully.com

Open Source SOA
http://FUSESource.com

Re: [jira] Resolved: (AMQ-2087) Redelivery after rollback does not seem to work well

Posted by Bruce Snyder <br...@gmail.com>.
On Wed, Jan 28, 2009 at 12:38 PM, Gary Tully (JIRA) <ji...@apache.org> wrote:

> There are a bunch of related open issues on this behavior, with the wire format change
> in 6.0 it will be possible to address this. A subscription remove command needs to
> indicate to the broker the last delivered ack that it has produced. An alternative is that
> the subscription trys to keep track of this information (which may be simpler).

To what changes are you referring regarding the wire format change in
ActiveMQ 6.0? I've not heard of anything related to this?

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

ActiveMQ in Action: http://bit.ly/2je6cQ
Blog: http://bruceblog.org/
Twitter: http://twitter.com/brucesnyder