-
Notifications
You must be signed in to change notification settings - Fork 781
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
ScheduleMessage returns timeout on exceeded message size #697
Comments
//fyi: @EldertGrootenboer |
Thank you for your feedback. We have opened an investigation task for this in our backlog, and will update this issue when we have more information. |
Thank you EldertGrootenboer for helping on the reported issue. I'm the support engineer working on the subjected issue. Would like to understand if you have some update for us on the same. Thank you so much in advance. |
@jsquire Seems it is caused by lacking message size check in AmqpSender.ScheduleMessageInternalAsync of SDK. The timeout was caused by swallowing of the message size exception (thrown by ReceivingAmqpLink.OnProcessTransfer) in AmqpLink.ProcessFrame in service side code, which is by design. |
@anqyan. This is by design. The SDK only validates message sizes when attempting to add to The service must perform its own validation and return an error to callers that provides them the information necessary to troubleshoot; the service cannot assume that an official Azure SDK package is what is calling it. For example, callers using Apache QPid to directly invoke the service should receive a meaningful error when the message size is exceeded. |
Service side investigations: Incident 471119503 : MessageSizeExceeded excepiton is not thrown for Scheduled messages. |
Hi @anqyan, is there any update on the issue? I was told it might take a couple of weeks to address the issue, and two months have passed since then. |
We have brought this item in our current planning. We don't have a specific date when development will start for this, once we have more information around this, we will update this thread. |
Now that another 3 months have passed, I fear the item has been put on hold. Is there any plan or progress with this? |
Issue Transfer
This issue has been transferred from the Azure SDK for .NET repository, #41869.
Service Bus Team: It appears that the service is not rejecting the message outright nor sending the client an error code to indicate that the message size was exceeded.
Please be aware that @erik-neumann is the author of the original issue and include them for any questions or replies.
Details
Describe the bug
We're enountering a different behavior when trying to send or schedule a message that exceeds the maximum size.
When sending the message, immediatly (or at least very quickly) a ServiceBusException is thrown: "The message (id:xyz, size:262152 bytes) is larger than is currently allowed (262144 bytes). (MessageSizeExceeded)."
When trying to schedule the message, a ServiceBusException is thrown after 10 secs: "The operation was canceled. (ServiceTimeout)". This is per default, in our production environment this timeout is reached very late because of retry configuration.
Expected behavior
Same behavior when sending or scheduling a message that exceeds allowed size, returning a ServiceBusException (MessageSizeExceeded) immediatly.
Actual behavior
ScheduleMessage returns timeout after 10 secs.
Reproduction Steps
Environment
Runtime Environment:
OS Name: Mac OS X
OS Version: 14.1
OS Platform: Darwin
RID: osx-arm64
Base Path: /usr/local/share/dotnet/sdk/8.0.101/
The text was updated successfully, but these errors were encountered: