Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added error handling when a chuck is not downloaded from an Azure blob
- To download a file from an azure blob we use the libraries "github.com/Azure/azure-pipeline-go/pipeline" and "github.com/Azure/azure-storage-blob-go/azblob". We divide the file into chunks and download it chunk by chunk until we download the whole file. For each chunk, we can retry up to 20 times. However, if the download of a chunk fails in all of 20 times (for example due to connectivity issues), we do not handle and report the error. This patch stores all the errors when downloading a chunk and in case all 20 retries have failed it stops the download and reports the error. Signed-off-by: Ioannis Sfakianakis <[email protected]>
- Loading branch information