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
[Service Bus] The code always throws error "Operation to settle the message has timed out. The disposition of the message may or may not be successful" after processing message. #3764
Comments
Thanks for reporting @dlukianenko When a request to settle a message (in your case "complete" a message) is made to Service Bus, the library waits for 20 seconds to hear back an acknowledgement that the message has indeed been successfully settled. The error you are seeing is thrown when this 20 second duration times out. @binzywu What should be the ideal timeout duration for this case i.e. how long should the client library wait to hear back an acknowledgement from the service? Can you think of any reason why the service would fail to respond within the 20 sec timeframe? |
@dlukianenko, would you please create a support request from the Azure Portal for this issue and include in it more contextual information like the name of your namespace? This is an issue for which we need to do further investigation on the service side. 20 seconds timeout should be enough and the fact that you are getting an error may be indicative of some other problem condition. I am going to close this issue, but feel free to reopen it if you have other kind of questions. |
@dlukianenko |
@dlukianenko, did you create the support request? Would you please share the SR#? |
Hello, I'm on a dev-test subscription and currently, I don't have a tech support subscription, so I cannot really create actual ServiceBus support requests without paying for tech support subscription. Is there any other option available to me? |
We've also seen this over 1500 times since our service using service into production a few months ago. Are there any queue configurations to check or anything we can do before raising a support query? Thanks @ramya-rao-a :) |
As a work around, would it make sense to check |
@SamJarmanPP Unfortunately no. he |
@ramya-rao-a Ah okay, darn. I asked over here what we should do in these cases - looking forward to hearing back :) We just want to make sure the message is processed once and only once, and that this is guaranteed. (Are we asking too much? haha) |
@SamJarmanPP please could you open a support case and provide us more details of namespace, entity, timestamp and ideally few sample message ids will be very helpful. |
@binzywu Sure but I feel the answer you provide would be applicable to anyone receiving this error? |
@SamJarmanPP Opening a support case/ticket will help @binzywu's team investigate the problem because they can then check the logs from the service side as well. Once they come to a conclusion on what the problem is, @binzywu or his team will surely update this GitHub issue with the answer and possible steps that can be taken to fix it |
@binzywu @ramya-rao-a opened one yesterday - 119081423002394 :) |
Thanks @SamJarmanPP, I'll close the issue now and we can track this via the support ticket. |
@axayjo Based on the support ticket logged by @SamJarmanPP, his issue is with what is being discussed at #2828 (comment) Originally, this issue was logged by @dlukianenko who doesn't have a subscription with tech support. Can you suggest any other way you can look into why the service is not able to settle messages within 20 seconds? |
@dlukianenko We will need to access the service logs for the specified namespace to debug the root cause of the delay in completing the message. In the meantime, there are some options
I'm closing the issue for now. Please feel free to reopen if you still have questions. |
The latest version of the Service Bus library (1.0.4) has the timeout increased from 20 seconds to 60 seconds as suggested by @axisc It also has the fix for the issue reported by @SamJarmanPP where messages failed to settle repeatedly after the library recovered from a broken receiver link |
The error "Operation to settle the message has timed out. The disposition of the message may or may not be successful" happens every time during message processing
I have created topic inside AzurePortal => Service Bus and created subscription to that topic.
I copied the example from documentation.
onMessageHandler
receives a message from the topic. The code processes the message. Message got removed from Azure Portal => Service Bus. I get the errorOperation to settle the message has timed out. The disposition of the message may or may not be successful
insideonErrorHandler
afteronMessageHandler
is done executing. Error happens every time.To Reproduce
Steps to reproduce the behavior:
Expected behavior
Process and clear up messages inside the topic without error.
Screenshots
Receive message from topic inside
onMessageHandler
:When
onMessageHandler
is done executing:Error:
Additional context
Full error:
The text was updated successfully, but these errors were encountered: