Repository: activemq Updated Branches: refs/heads/master 6d20cba0e -> b9f9f0382
Revert "https://issues.apache.org/jira/browse/AMQ-6218" Reverting commit in favor of a better approach This reverts commit ea09159a4087212964787e7cf68ef30170d115f0. Project: http://git-wip-us.apache.org/repos/asf/activemq/repo Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/9c929b68 Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/9c929b68 Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/9c929b68 Branch: refs/heads/master Commit: 9c929b6870ae4c19cf4f227fa13472b09ebac729 Parents: 6d20cba Author: Christopher L. Shannon (cshannon) <[email protected]> Authored: Fri Apr 15 11:48:18 2016 +0000 Committer: Christopher L. Shannon (cshannon) <[email protected]> Committed: Fri Apr 15 11:48:18 2016 +0000 ---------------------------------------------------------------------- .../org/apache/activemq/command/ActiveMQTextMessage.java | 8 -------- 1 file changed, 8 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/activemq/blob/9c929b68/activemq-client/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java ---------------------------------------------------------------------- diff --git a/activemq-client/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java b/activemq-client/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java index 4618341..97fc9e4 100755 --- a/activemq-client/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java +++ b/activemq-client/src/main/java/org/apache/activemq/command/ActiveMQTextMessage.java @@ -55,12 +55,6 @@ public class ActiveMQTextMessage extends ActiveMQMessage implements TextMessage } private void copy(ActiveMQTextMessage copy) { - //AMQ-6218 - Save text before calling super.copy() to prevent a race condition when - //concurrent store and dispatch is enabled in KahaDB - //The issue is sometimes beforeMarshall() gets called in between the time content and - //text are copied to the new object leading to both fields being null when text should - //not be null - String text = this.text; super.copy(copy); copy.text = text; } @@ -85,11 +79,9 @@ public class ActiveMQTextMessage extends ActiveMQMessage implements TextMessage @Override public String getText() throws JMSException { ByteSequence content = getContent(); - String text = this.text; if (text == null && content != null) { text = decodeContent(content); - this.text = text; setContent(null); setCompressed(false); }
