[
https://issues.apache.org/jira/browse/ARTEMIS-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16192749#comment-16192749
]
ASF GitHub Bot commented on ARTEMIS-1444:
-----------------------------------------
GitHub user mtaylor opened a pull request:
https://github.com/apache/activemq-artemis/pull/1574
ARTEMIS-1444 Support Messages > JournalBufferSize in all Protocols
Notice the use of a deprecated method message.getBodyBuffer() in
ServerSessionImpl. It's valid usage in this case.
@clebertsuconic perhaps this should not be deprecated. The alternative (to
use ICoreMessage interface) would require significant refactor.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mtaylor/activemq-artemis ARTEMIS-1444
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/1574.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 #1574
----
commit 1e4cb1049174b7571da023c0d23f595f8a4b02fb
Author: Martyn Taylor <[email protected]>
Date: 2017-10-05T10:32:32Z
ARTEMIS-1444 Support Messages > JournalBufferSize in all Protocols
----
> Large messages are not working with OpenWire protocol
> -----------------------------------------------------
>
> Key: ARTEMIS-1444
> URL: https://issues.apache.org/jira/browse/ARTEMIS-1444
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Affects Versions: 2.3.0
> Reporter: Martyn Taylor
>
> Sending a message of 4mb causes the broker to throw an exception:
> 11:32:39,593 ERROR
> [org.apache.activemq.artemis.core.journal.impl.JournalImpl]
> appendAddRecord::java.lang.IllegalArgumentException: Record is too large to
> store 11360234: java.lang.IllegalArgumentException: Record is too large to
> store 11360234
> at
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.switchFileIfNecessary(JournalImpl.java:2872)
> [artemis-journal-2.2.0.jar:2.2.0]
> at
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.appendRecord(JournalImpl.java:2597)
> [artemis-journal-2.2.0.jar:2.2.0]
> at
> org.apache.activemq.artemis.core.journal.impl.JournalImpl.access$200(JournalImpl.java:88)
> [artemis-journal-2.2.0.jar:2.2.0]
> at
> org.apache.activemq.artemis.core.journal.impl.JournalImpl$1.run(JournalImpl.java:744)
> [artemis-journal-2.2.0.jar:2.2.0]
> at
> org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42)
> [artemis-commons-2.2.0.jar:2.2.0]
> at
> org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31)
> [artemis-commons-2.2.0.jar:2.2.0]
> at
> org.apache.activemq.artemis.utils.actors.ProcessorBase$ExecutorTask.run(ProcessorBase.java:53)
> [artemis-commons-2.2.0.jar:2.2.0]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> [rt.jar:1.8.0_141]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> [rt.jar:1.8.0_141]
> at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_141]
>
> 11:32:39,594 WARN [org.apache.activemq.artemis.core.server] AMQ222057: It
> was not possible to add references due to an IO error code 6 message = null
> 11:32:39,595 ERROR
> [org.apache.activemq.artemis.core.journal.impl.JournalImpl]
> appendUpdateRecord:java.lang.NullPointerException:
> java.lang.NullPointerException
> at
> org.apache.activemq.artemis.core.journal.impl.JournalImpl$2.run(JournalImpl.java:809)
> [artemis-journal-2.2.0.jar:2.2.0]
> at
> org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:42)
> [artemis-commons-2.2.0.jar:2.2.0]
> at
> org.apache.activemq.artemis.utils.actors.OrderedExecutor.doTask(OrderedExecutor.java:31)
> [artemis-commons-2.2.0.jar:2.2.0]
> at
> org.apache.activemq.artemis.utils.actors.ProcessorBase$ExecutorTask.run(ProcessorBase.java:53)
> [artemis-commons-2.2.0.jar:2.2.0]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> [rt.jar:1.8.0_141]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> [rt.jar:1.8.0_141]
> at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_141]
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)