[
https://issues.apache.org/jira/browse/PROTON-2951?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Flavio Baronti updated PROTON-2951:
-----------------------------------
Description:
In {{ClientNextReceiverSelector.selectNextAvailable}} there is a loop searching
for the first available receiver past the last returned receiver. Once an
eligible receiver is found though, the is no {{break}} from the loop, causing
search to proceed until the last receiver. This makes the {{ROUND_ROBIN}}
policy work improperly.
[https://github.com/apache/qpid-protonj2/blob/8c9cb5ea5bfdbc14960f2293f6fc18af089fd1fe/protonj2-client/src/main/java/org/apache/qpid/protonj2/client/impl/ClientNextReceiverSelector.java#L151]
was:
In {{ClientNextReceiverSelector.selectNextAvailable }}there is a loop searching
for the first available receiver past the last returned receiver. Once an
eligible receiver is found though, the is no {{break }}from the loop, causing
search to proceed until the last receiver. This makes the {{ROUND_ROBIN
}}policy work improperly.
https://github.com/apache/qpid-protonj2/blob/8c9cb5ea5bfdbc14960f2293f6fc18af089fd1fe/protonj2-client/src/main/java/org/apache/qpid/protonj2/client/impl/ClientNextReceiverSelector.java#L151
> ROUND_ROBIN policy implementation error
> ---------------------------------------
>
> Key: PROTON-2951
> URL: https://issues.apache.org/jira/browse/PROTON-2951
> Project: Qpid Proton
> Issue Type: Bug
> Components: protonj2
> Affects Versions: protonj2-1.2.0
> Reporter: Flavio Baronti
> Assignee: Timothy A. Bish
> Priority: Major
>
> In {{ClientNextReceiverSelector.selectNextAvailable}} there is a loop
> searching for the first available receiver past the last returned receiver.
> Once an eligible receiver is found though, the is no {{break}} from the loop,
> causing search to proceed until the last receiver. This makes the
> {{ROUND_ROBIN}} policy work improperly.
> [https://github.com/apache/qpid-protonj2/blob/8c9cb5ea5bfdbc14960f2293f6fc18af089fd1fe/protonj2-client/src/main/java/org/apache/qpid/protonj2/client/impl/ClientNextReceiverSelector.java#L151]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]