You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Keith Wall (JIRA)" <ji...@apache.org> on 2017/10/24 09:28:00 UTC
[jira] [Commented] (QPID-7971) [Java Broker] [AMQP1.0] [AMQP0-9]
Queue#ConsumerCountWithCredit statistic not decremented when consumer
disconnects
[ https://issues.apache.org/jira/browse/QPID-7971?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16216601#comment-16216601 ]
Keith Wall commented on QPID-7971:
----------------------------------
The 0-10 path is different because on session detach, the ConsumerTarget_0_10#stop is called with clears credit then tells the consumers that {{setNotifyWorkDesired(false)}}. This masks the problem. The defect is actually in AbstractConsumerTarget#close which clears {{_consumers}} before calling {{setNotifyWorkDesired}}.
> [Java Broker] [AMQP1.0] [AMQP0-9] Queue#ConsumerCountWithCredit statistic not decremented when consumer disconnects
> -------------------------------------------------------------------------------------------------------------------
>
> Key: QPID-7971
> URL: https://issues.apache.org/jira/browse/QPID-7971
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Affects Versions: qpid-java-broker-7.0.0
> Reporter: Keith Wall
> Priority: Minor
> Fix For: qpid-java-broker-7.0.0
>
>
> Running {{HelloWorld}} against the Java Broker, I notice that the {{Queue#ConsumerCountWithCredit}} statistic does not return to zero after the connection is closed. The problem is not apparent -when using the older protocols-. Corrected: AMQP 0-9 also exhibits the same problem.
> I notice {{org.apache.qpid.server.consumer.AbstractConsumerTarget#close}} clears {{_consumers}} then calls {{setNotifyWorkDesired}} which iterates {{_consumers}}.
> I verified that v6.1 is not affected.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org