Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup BlobStoreRepository Abort and Failure Handling (elastic#46208)
Aborts and failures were handled in a somewhat unfortunate way in elastic#42791: Since the tasks for all files are generated before uploading they are all executed when a snapshot is aborted and lead to a massive number of failures added to the original aborted exception. In the case of failures the situation was not very reasonable as well. If one blob fails uploading the snapshot logic would upload all the remaining files as well and then fail (when previously it would just fail all following files). I fixed both of the above issues, by just short-circuiting all remaining tasks for a shard in case of an exception in any one upload.
- Loading branch information