activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: NMS Activemq provider & TestZeroPrefetchSize test
Date Wed, 29 Jul 2009 14:02:05 GMT
On Wed, 2009-07-29 at 06:54 -0700, magellings wrote:
> Hello
> 
> I believe this test may not be fully testing the zero prefetch size
> scenario.
> 
> If you add a consumer with prefetch (say 5) and produce 20 messages, the
> consumer with prefetch should consume a static amount of messages.  If two
> zero prefetch consumers recieve twice, then there would be 18 messages the
> consumer with prefetch should recieve.
> 
> >From my testing if I don't set the prefetch on the destination name
> (test.queue?consumer.prefetchSize=0) and the Prefetch property on the
> Session then the consumer with zero prefetch seems to still prefetch as the
> consumer with prefetch doesn't pick up all the 18 messages it should.
> 
> It would be good if someone with commit privs could modify this test and
> prove this out.
> 
> -Thanks

You are welcome to create a new Jira issue and attach a patch file or
new test case that demonstrates the problem you are describing.

Regards
Tim.



Mime
View raw message