downloadBlobToWriterAt() does not execute Progress() function #16726
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Storage
Storage Service (Queues, Blobs, Files)
Bug Report
but more specifically https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/storage/azblob/highlevel.go#L284
SDK version: master
What happened?
Setting
Progress
onHighLevelDownloadFromBlobOptions
forDownloadBlobToFile
does not work. The function does not appear to get executed.I think this is because
o.Progress(progress) is commented out
. Why is it commented out? 😛 And I suspect this would causeProgress
to get skipped for allDownloadBlob...
functions.Progress function should be executed during Downloads just as it is (working) for uploads.
Clone my project from this specific commit: https://github.com/discentem/bk_azureblob/tree/c063613fcd0f5ce8305734239375e2cf0ace94ac. Edit secrets_example.go with real values for
clientId
,tenantId
, etc... and build/run it. You'll observe that theProgress
function works for uploads but not for downloads.Download: https://github.com/discentem/bk_azureblob/blob/c063613fcd0f5ce8305734239375e2cf0ace94ac/main.go#L105
Upload: https://github.com/discentem/bk_azureblob/blob/c063613fcd0f5ce8305734239375e2cf0ace94ac/main.go#L128
The text was updated successfully, but these errors were encountered: