[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to