wy96f commented on a change in pull request #2703: ARTEMIS-2380 Fix delivering 
message in the case of consume close
URL: https://github.com/apache/activemq-artemis/pull/2703#discussion_r319896346
 
 

 ##########
 File path: 
artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/RefsOperation.java
 ##########
 @@ -175,6 +179,8 @@ protected void rollbackRedelivery(Transaction tx, 
MessageReference ref, long tim
    @Override
    public void afterCommit(final Transaction tx) {
       for (MessageReference ref : refsToAck) {
+         clearLingerRef(ref);
 
 Review comment:
   I think it just hold the queue which the first acked message belongs to. 
Following acked messages in this transaction maybe from other queues since a 
session might create consumers subscribing to different queues.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to