tabish121 commented on code in PR #4840: URL: https://github.com/apache/activemq-artemis/pull/4840#discussion_r1514742904
########## artemis-protocols/artemis-amqp-protocol/src/main/java/org/apache/activemq/artemis/protocol/amqp/proton/AMQPLargeMessageReader.java: ########## @@ -34,7 +34,7 @@ public class AMQPLargeMessageReader implements MessageReader { private final ProtonAbstractReceiver serverReceiver; - private AMQPLargeMessage currentMessage; + private volatile AMQPLargeMessage currentMessage; Review Comment: I'd go with abundance of caution since we are crossing threads where we weren't before. -- 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