You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Marek Laca (Jira)" <ji...@apache.org> on 2020/08/26 11:13:00 UTC
[jira] [Comment Edited] (QPID-8452) Message larger than 2GB
[ https://issues.apache.org/jira/browse/QPID-8452?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17185105#comment-17185105 ]
Marek Laca edited comment on QPID-8452 at 8/26/20, 11:12 AM:
-------------------------------------------------------------
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.
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.
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.
was (Author: lacam):
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.
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.
Fixing the issue would require an extensive change in 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.
> 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: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org