Open SoulKa opened 1 month ago
@ibrahimrabab @ibrandes @seanmcc-msft
Thank you for your feedback. Tagging and routing to the team member best able to assist.
I just ran the function locally on my mac. I could not reproduce the error there. It has to do with the Windows Function environment in combination with the new library...
Update: I noticed that the HTTP download of the blob simply does not progress. So the blob storage closes the TCP/HTTP connection after ~45s thus the exception.
It seems that this is the origin of the issue. I do not know the internals of the Azure netty or blob storage download implementation, but some change in 12.25.4
results in the freezing HTTP call.
Please tell me if I can provide any useful information or tests.
Is someone working on this? Azure Functions seem like a common use case for blob downloads. It would be bad if this issue persists in the newer versions.
Hi @SoulKa We are investigating this issue on our end and will get back to you on this thread as soon as we can with our findings. Thank you for your patience!
Thank you for investigating this issue! I can provide further details where needed
Hi @SoulKa
Wanted to confirm, have you used either of these guides when trying to develop with Storage and Azure Functions?
Hi @ibrahimrabab,
I have not used these guides yet. Are they relevant when I do not have a netty dependency in my project? These are my dependencies:
@SoulKa While your POM doesn't explicitly include Netty, since it's a dependency of azure-storage-blob it will be included in the application. So, the guides shared are relevant.
Once you go through the guides, please let us know if you are still facing the issue, thank you!
Describe the bug I am getting
io.netty.channel.StacklessClosedChannelException
exceptions when downloading blobs usingdownloadToFile()
in version 12.25.4. The same code works using version 12.25.3. It is running in an Azure Function. The download link is valid and the blob storage is available. I can reproduce the error. Probably an issue due to the netty upgrade in version 12.25.4?Exception or Stack Trace
To Reproduce Steps to reproduce the behavior:
new BlobClientBuilder().endpoint(blobSasUrl).buildClient()
and a valid download URL to a blob with a valid SAS URL. Version 12.25.4 of the storage library has to be used.client.downloadToFile(destinationPath, true)
StacklessClosedChannelException
Code Snippet
Expected behavior The blob gets successfully downloaded as it was in version 12.25.3
Setup (please complete the following information):
4.33.1.22394
and App Service Plan EP2 and EP3, both getting the same issueInformation Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report