You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Thomas Riccardi (JIRA)" <ji...@apache.org> on 2012/06/08 19:40:22 UTC

[jira] [Updated] (AMQCPP-410) prefetchSize=0 is ignored when set via PrefetchPolicy

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

Thomas Riccardi updated AMQCPP-410:
-----------------------------------

    Attachment: activemq-cpp-library-3.4.3-src.fix-prefetchSize-0.patch
    
> 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 PrefectPolicy, 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 force 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