Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/uplink: fix how we are collecting errors while copy in parallel
Main issue was that when one part copy failed while being inside goroutine (limiter) and another part was still collecting src/dst parts it was possible to drop errors from failed part copy. It was possible bacause on fail context was canceled and if we were still getting part src/dst then it was returning error immediately and error group with errors from goroutine was ignored. Change-Id: I75c6799eba358741629795f2971c7a964cb2c9ce
- Loading branch information
Showing
1 changed file
with
17 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffbb43d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit has been mentioned on Storj Community Forum (official). There might be relevant details there:
https://forum.storj.io/t/release-preparation-v1-57/18810/1