Description
- Package Name: azure-storage-blob
- Package Version: 12.19.1
- Operating System: Fedora Workstation (39)
- Python Version: 3.12.2
Describe the bug
When experiencing timeouts while downloading a blob with Azure Python SDK the whole download will fail when the network is brought back to normal even if there are retries left for the retry_policy
.
I have not been able to reproduce this with uploads.
To Reproduce
See https://github.com/mattiasb/blob-issue for more details on how to reproduce (including an example script).
Steps to reproduce the behavior:
- Start downloading a sufficiently large blob using this script.
- After a little while induce a really large artificial network latency to your network device. For example with this script.
- Wait for two rounds of retries to trigger
- Reset the network to normal
- Watch the download fail even though the retry policy has retries left and the network is back to normal.
Expected behavior
I would expect the retry policy to trigger also on timeouts, such that when I returned the network to normal a later set of retries would let the script finish downloading the file.
Additional context
Again. The best is to see what I do at https://github.com/mattiasb/blob-issue. But I recorded some logs as well which might be worth looking at.