activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Tully <gary.tu...@gmail.com>
Subject Re: prefetchExtension off-by-1 for transacted consumers with prefetchSize > 0
Date Thu, 18 Mar 2010 19:58:22 GMT
The prefetch extension in the transacted case is necessary for the case
where a transacted consumer wants to consumer more than prefetch messages in
a single transaction. Without the extension, the broker would see a full
prefetch and not dispatch any more and a receive could block.

On 15 March 2010 21:31, rodos77 <eugene.rodos@nexj.com> wrote:

>
> JIRA AMQ-2651 opened.
>
> I would be happy to provide a patch but as I stated in my original post, I
> don't fully understand the need for prefetchExtension in the case of a
> transacted, asynchronous (prefetchSize > 0) consumer.  If somebody could
> explain it, that would perhaps give me the required knowledge to come up
> with a patch.
>
> The way I see it now, I would get rid of the prefetchExtension (in the
> above
> mentioned case) all together, but again I'm probably missing some piece of
> information and I don't want to cause any side effects.  Barring that, I
> think there is an off-by-1 error in its calculation but I need this
> confirmed in order to create a proper patch.
> --
> View this message in context:
> http://old.nabble.com/prefetchExtension-off-by-1-for-transacted-consumers-with-prefetchSize-%3E-0-tp27866123p27910673.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>


-- 
http://blog.garytully.com

Open Source Integration
http://fusesource.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message