[
https://issues.apache.org/jira/browse/QPID-8452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17185116#comment-17185116
]
Robert Godfrey commented on QPID-8452:
--------------------------------------
{quote}The AMQP protocol specification states that the Data section of the
message is a byte array, which has the size limit 4 GB. The best possible
improvement is from 2 GB to 4 GB.{quote}
while an individual data section is limited to 4Gb, there is no limit to the
number of data sections used in an individual message - so, from an AMQP point
of view, message sizes are potentially unbounded.
bq. Broker utilizes the Java byte array and ByteBuffer that have the limit 2
GB. Broker uses the sign integer for data size, length, position and the sign
integer can index 2 GB of data at most.
bq.
bq. Fixing the issue would require an extensive change of the Broker. I would
suggest limiting the maximum message size that the broker can process to the 2
GB. Let the broker gracefully fail when client tries to send a message bigger
than 2 GB.
I'd agree that limiting the max message size to <=2GB is the sensible approach.
If the broker is sent a message which is greater than the maximum allowed
message size, it should detach the link, as defined
[here|http://docs.oasis-open.org/amqp/core/v1.0/os/amqp-core-transport-v1.0-os.html#type-attach]
> Message larger than 2GB
> -----------------------
>
> Key: QPID-8452
> URL: https://issues.apache.org/jira/browse/QPID-8452
> Project: Qpid
> Issue Type: Bug
> Components: Broker-J
> Affects Versions: qpid-java-broker-8.0.0
> Reporter: Tomas Soltys
> Priority: Minor
>
> Seems like there is a 2GB limitation for how big the message can be. This is
> most likely due to usage of Int type.
> Also, when this limit is reached no exception is raised nor any message is
> printed into a broker log and sender seems to keep waiting for
> acknowledgement.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]