brusdev commented on code in PR #5713: URL: https://github.com/apache/activemq-artemis/pull/5713#discussion_r2115771273
########## artemis-protocols/artemis-openwire-protocol/src/main/java/org/apache/activemq/artemis/core/protocol/openwire/amq/AMQConsumer.java: ########## @@ -306,7 +306,7 @@ public int handleDeliver(MessageReference reference, ICoreMessage message) { int size = dispatch.getMessage().getSize(); reference.setProtocolData(MessageId.class, dispatch.getMessage().getMessageId()); session.deliverMessage(dispatch); - currentWindow.decrementAndGet(); + currentWindow.updateAndGet(i -> i > 0 ? i - 1 : i); Review Comment: This change causes the failure of org.apache.activemq.artemis.tests.integration.stomp.v12.StompV12Test.testSubscribeWithClientAckThenConsumingAgainWithAutoAckWithNoDisconnectFrame -- 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. To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: gitbox-unsubscr...@activemq.apache.org For additional commands, e-mail: gitbox-h...@activemq.apache.org For further information, visit: https://activemq.apache.org/contact