[ServiceBus] Send message didn't recovered after network disconnect.
See original GitHub issue- Package Name: azure-servicebus
- Package Version: 7.0.0b8
- Operating System: Mac 10.15.5
- Python Version: 3.6.10
Describe the bug sending message was infinitely blocked when network interrupted
To Reproduce Steps to reproduce the behavior: with the function from example like this
def send_batch_message(sender):
batch_message = sender.create_message_batch()
print('disconnect network here')
time.sleep(15)
for _ in range(10):
try:
batch_message.add_message(ServiceBusMessage("Session Message inside a ServiceBusMessageBatch", session_id=SESSION_ID))
except ValueError:
# ServiceBusMessageBatch object reaches max_size.
# New ServiceBusMessageBatch object can be created here to send more data.
break
sender.send_messages(batch_message)
print('success')
- disconnect the network in time.sleep()
- then wait till it to
sender.send_messages - reconnect network
- infinite block
Expected behavior should have mechanism to retry or raise exception at least
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Insulate Azure Service Bus applications against outages and ...
After the problem has been fixed, Service Bus becomes available again. Typically, an outage doesn't cause loss of messages or other data.
Read more >Azure Service Bus QueueClient not reconnecting after ...
When I get a network disconnection the QueueClient will not reconnect back to Azure Service Bus when the network connection is restored.
Read more >Azure Service Bus and its Complete Overview | Serverless360
Furthermore, the producer does not have to wait for a reply from the consumer in order to continue to process and send messages....
Read more >Advanced Features with Azure Service Bus - YouTube
Azure Service Bus Messaginghttps://docs.microsoft.com/azure/ service-bus - messaging / service-bus - messaging -overview?
Read more >Receiving messages from Azure Service Bus in C# - Ciaran O ...
ServiceBus library. Connecting to Service BusPermalink. Same as last time, we need to get our Connection String from the Azure Portal. Then we ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’m using Mac as test operating system, so probably is the specific issue only on macOS.
here is entire code:
hey @cropse, we have enhanced the underlying C library to be able to detect error IO status on MacOS.
uamqp v1.2.13 is released today to include the fix. Please upgrade to the latest uamqp version (e.g.
pip install uamqp --upgrade) to see if it solves your problem.I’m closing the issue now, feel free to reopen if you still get trouble with the latest version.