Azure / azure-storage-java

Microsoft Azure Storage Library for Java
https://docs.microsoft.com/en-us/java/api/overview/azure/storage
MIT License
189 stars 165 forks source link

BlobClient downloadToFile hangs forever if blob doesn't exist #582

Open ataquedosesquilos opened 1 year ago

ataquedosesquilos commented 1 year ago

Which service(blob, file, queue, table) does this issue concern?

Blob

Which version of the SDK was used?

Please note that if your issue is with v11, we are recommending customers either move back to v11 or move to v12 (currently in preview) if at all possible. Hopefully this resolves your issue, but if there is some reason why moving away from v11 is not possible at this time, please do continue to ask your question and we will do our best to support you. The README for this SDK has been updated to point to more information on why we have made this decision.

12.20.2

What problem was encountered?

When trying to download a blob that doesn't exist using the method downToFile from BlobClient the thread hands in forever instead of throwing an exception or downloading an empty file

Have you found a mitigation/solution?

Yes, calling exists before doing the download