Github user michaelandrepearce commented on the issue: https://github.com/apache/activemq-artemis/pull/1428 Yeah seems that we need to somehow ensure when redelivery or consumer.close is called to ensure any waiting batched packets are send and confirmed. It seems some acks are still in batches waiting to be sent. (i tried also doing the other option you suggested Clebert with an async ack, instead of using auto ackcommit on the session it has same problem) ill look to see what options there are
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---