[
https://issues.apache.org/jira/browse/QPIDJMS-544?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robbie Gemmell updated QPIDJMS-544:
-----------------------------------
Description:
When using the `JmsDefaultPrefetchPolicy` and setting a prefetch limit,
prefetch values greater than the `maxPrefetchSize` are logged as being reset to
the `MAX_PREFETCH_SIZE`. I believe `MAX_PREFETCH_SIZE` should be changed to
`maxPrefetchSize`.
{noformat}
private int getMaxPrefetchLimit(int value) {
int result = Math.min(value, maxPrefetchSize);
if (result < value) {
LOG.warn("maximum prefetch limit has been reset from " + value + " to "
+ MAX_PREFETCH_SIZE);
}
return result;
}{noformat}
{noformat}
private int getMaxPrefetchLimit(int value) {
int result = Math.min(value, maxPrefetchSize);
if (result < value) {
LOG.warn("maximum prefetch limit has been reset from " + value + " to "
+ maxPrefetchSize);
}
return result;
}{noformat}
was:
When using the `JmsDefaultPrefetchPolicy`, and setting a `maxPrefetchLimit`,
the values less than the `maxPrefetchSize` are logged as being reset to the
`MAX_PREFETCH_SIZE`. I believe `MAX_PREFETCH_SIZE` should be changed to
`maxPrefetchSize`.
{noformat}
private int getMaxPrefetchLimit(int value) {
int result = Math.min(value, maxPrefetchSize);
if (result < value) {
LOG.warn("maximum prefetch limit has been reset from " + value + " to "
+ MAX_PREFETCH_SIZE);
}
return result;
}{noformat}
{noformat}
private int getMaxPrefetchLimit(int value) {
int result = Math.min(value, maxPrefetchSize);
if (result < value) {
LOG.warn("maximum prefetch limit has been reset from " + value + " to "
+ maxPrefetchSize);
}
return result;
}{noformat}
> JmsDefaultPrefetchPolicy#getMaxPrefetchLimit logs incorrect MAX_PREFETCH_SIZE
> -----------------------------------------------------------------------------
>
> Key: QPIDJMS-544
> URL: https://issues.apache.org/jira/browse/QPIDJMS-544
> Project: Qpid JMS
> Issue Type: Bug
> Components: qpid-jms-client
> Affects Versions: 1.0.0, 1.1.0
> Reporter: Alexander Scott
> Priority: Trivial
>
> When using the `JmsDefaultPrefetchPolicy` and setting a prefetch limit,
> prefetch values greater than the `maxPrefetchSize` are logged as being reset
> to the `MAX_PREFETCH_SIZE`. I believe `MAX_PREFETCH_SIZE` should be changed
> to `maxPrefetchSize`.
>
>
> {noformat}
> private int getMaxPrefetchLimit(int value) {
> int result = Math.min(value, maxPrefetchSize);
> if (result < value) {
> LOG.warn("maximum prefetch limit has been reset from " + value + " to
> " + MAX_PREFETCH_SIZE);
> }
> return result;
> }{noformat}
>
>
> {noformat}
> private int getMaxPrefetchLimit(int value) {
> int result = Math.min(value, maxPrefetchSize);
> if (result < value) {
> LOG.warn("maximum prefetch limit has been reset from " + value + " to
> " + maxPrefetchSize);
> }
> return result;
> }{noformat}
>
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]