[
https://issues.apache.org/jira/browse/ARTEMIS-2380?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16921902#comment-16921902
]
ASF subversion and git services commented on ARTEMIS-2380:
----------------------------------------------------------
Commit 4a61d2dc769ebc76b5cb18a240931ad169c0123e in activemq-artemis's branch
refs/heads/master from Wei Yang
[ https://gitbox.apache.org/repos/asf?p=activemq-artemis.git;h=4a61d2d ]
ARTEMIS-2380 Fix delivering message in the case of consume close
> 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
> Time Spent: 10h 50m
> 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.2#803003)