activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQCPP-410) prefetchSize=0 is ignored when set via PrefetchPolicy
Date Fri, 08 Jun 2012 19:58:23 GMT

    [ https://issues.apache.org/jira/browse/AMQCPP-410?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13291939#comment-13291939
] 

Timothy Bish commented on AMQCPP-410:
-------------------------------------

Would be great if you could contribute some tests in the integration tests suite or unit tests
suite to validate the fix and ensure it stays fixed. 
                
> prefetchSize=0 is ignored when set via PrefetchPolicy
> -----------------------------------------------------
>
>                 Key: AMQCPP-410
>                 URL: https://issues.apache.org/jira/browse/AMQCPP-410
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>          Components: CMS Impl
>    Affects Versions: 3.4.1, 3.4.3
>         Environment: Ubuntu 10.04 x86_64, ActiveMQ 5.5.0
>            Reporter: Thomas Riccardi
>            Assignee: Timothy Bish
>         Attachments: activemq-cpp-library-3.4.3-src.fix-prefetchSize-0.patch
>
>
> When setting the prefetchSize to 0 via PrefecthPolicy, the value seen by the broker is
1000.
> The value is correctly set in ActiveMQConsumer constructor in consumerInfo, but is later
overwritten to 1000 by applyDestinationOptions(), even if the option is not set in the destination
options from the broker url.
> applyDestinationOptions() considers 0 as an invalid value, and then forces the reading
of the value from the destination option, which has the default value of 1000.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message