tabish121 commented on code in PR #5848: URL: https://github.com/apache/activemq-artemis/pull/5848#discussion_r2243608140
########## artemis-server/src/main/java/org/apache/activemq/artemis/core/server/impl/ServerConsumerImpl.java: ########## @@ -526,7 +526,11 @@ public void proceedDeliver(MessageReference reference) throws Exception { } } finally { pendingDelivery.countDown(); - callback.afterDelivery(); + synchronized (lock) { Review Comment: The main downside would be the extensive use of the session callback variable throughout the ServerComsumerImpl code do now all become volatile reads so will incur some small performance penalty compared to the past, how much of a penalty would require testing to really gauge. -- 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