-
Notifications
You must be signed in to change notification settings - Fork 108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client adds a message attribute name to ReceiveMessageRequest for every call #25
Comments
dsw2127
added a commit
to dsw2127/amazon-sqs-java-extended-client-lib
that referenced
this issue
Nov 27, 2017
If someone re-uses the ReceiveMessageRequest object for multiple calls to AmazonSQSExtendedClient, the latter will add the RESERVED_ATTRIBUTE_NAME String as a message attribute name every time. This can cause 413 / Request Entity Too Large errors from AWS SQS over time.
Workaround is to not re-use (i.e. create a new) ReceiveMessageRequest object for every invocation. |
dsw2127
added a commit
to dsw2127/amazon-sqs-java-extended-client-lib
that referenced
this issue
Nov 27, 2017
If someone re-uses the ReceiveMessageRequest object for multiple calls to AmazonSQSExtendedClient, the latter will add the RESERVED_ATTRIBUTE_NAME String as a message attribute name every time. This can cause 413 / Request Entity Too Large errors from AWS SQS over time.
dsw2127
added a commit
to dsw2127/amazon-sqs-java-extended-client-lib
that referenced
this issue
Nov 27, 2017
If someone re-uses the ReceiveMessageRequest object for multiple calls to AmazonSQSExtendedClient, the latter will add the RESERVED_ATTRIBUTE_NAME String as a message attribute name every time. This can cause 413 / Request Entity Too Large errors from AWS SQS over time.
Hi there! Thanks for contributing this fix. We have pulled it into the latest release: https://github.com/awslabs/amazon-sqs-java-extended-client-lib/releases/tag/1.0.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AmazonSQSExtendedClient.receiveMessage(ReceiveMessageRequest)
always appendsSQSExtendedClientConstants.RESERVED_ATTRIBUTE_NAME
to the list of message attribute names of the request passed in. Therefore if the request object is re-used for multiple invocations, this request can grow and grow. Eventually, if allowed to grow over time, SQS will deny the request with a 413 Request Entity Too Large. This seems to happen when the header gets to be somewhere around 1MB.Example of message attribute names over four invocations:
The text was updated successfully, but these errors were encountered: