activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdanekrh <>
Subject [GitHub] activemq-artemis issue #1407: ARTEMIS-1276 fix JmsSendReceiveWithMessageExpi...
Date Thu, 20 Jul 2017 16:10:36 GMT
Github user jdanekrh commented on the issue:
    Right. Yeah, I think this one is actual OpenWire handling bug in Artemis. If the message
expires while it is being prefetched on client, server drops it and never tries to expire
    i may even have a fix, but this message lifecycle is quite complicated, so it is likely
I am missing something...
    --- a/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/
    +++ b/artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/
    @@ -298,8 +298,9 @@ public class AMQConsumer {
           if (ack.isExpiredAck()) {
    -         //adjust delivering count for expired messages
    -         this.serverConsumer.getQueue().decDelivering(ackList.size());
    +         for (MessageReference ref : ackList) {
    +            ref.getQueue().expire(ref);
    +         }

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 or file a JIRA ticket
with INFRA.

View raw message