[ https://issues.apache.org/jira/browse/ARTEMIS-357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15113590#comment-15113590 ]
ASF GitHub Bot commented on ARTEMIS-357: ---------------------------------------- GitHub user clebertsuconic opened a pull request: https://github.com/apache/activemq-artemis/pull/337 ARTEMIS-357 Avoiding possible races on encoding messages https://issues.apache.org/jira/browse/ARTEMIS-357 You can merge this pull request into a Git repository by running: $ git pull https://github.com/clebertsuconic/activemq-artemis master Alternatively you can review and apply these changes as the patch at: https://github.com/apache/activemq-artemis/pull/337.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #337 ---- commit d87700c95228b014e975b5f1506bb0e8f5a3eab5 Author: Clebert Suconic <clebertsuco...@apache.org> Date: 2016-01-23T05:06:05Z ARTEMIS-357 Avoiding possible races on encoding messages https://issues.apache.org/jira/browse/ARTEMIS-357 ---- > Possible encoding race over many destinations > --------------------------------------------- > > Key: ARTEMIS-357 > URL: https://issues.apache.org/jira/browse/ARTEMIS-357 > Project: ActiveMQ Artemis > Issue Type: Bug > Affects Versions: 1.0.0, 1.1.0, 1.2.0 > Reporter: clebert suconic > Fix For: 1.3.0 > > > There seems to be a possibility of a race on messageImpl:encodeToBuffer > The current implementation try to reuse the buffer sent on producer on an > optimization that was used when we were on Netty Blocking. > We have been reported of cases where the client can't decode the message: -- This message was sent by Atlassian JIRA (v6.3.4#6332)