You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "clebert suconic (Jira)" <ji...@apache.org> on 2019/09/23 18:58:01 UTC

[jira] [Closed] (ARTEMIS-2380) Fix delivering message in the case of consume close

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

clebert suconic closed ARTEMIS-2380.
------------------------------------
    Fix Version/s: 2.11.0
       Resolution: Fixed

> Fix delivering message in the case of consume close
> ---------------------------------------------------
>
>                 Key: ARTEMIS-2380
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2380
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>            Reporter: yangwei
>            Priority: Major
>             Fix For: 2.11.0
>
>          Time Spent: 11h
>  Remaining Estimate: 0h
>
> When consumer is closed and transaction is not committed or rollbacked, the msg acked is not showed by delivering message but counted by delivering count.
> We add closed consumer if any message is acked but not committed or rollbacked, and remove closed consumer if transaction is finished. In this way, delivering messages can be properly retained.
> During calling hasCosnumer and getConsumerId, there is some race condition that emptyConsumerId is called causing following getConsumerId throws IllegalStateException. Also optimize it without extra effort.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)