storj/cmd
Michał Niewrzał 4f2fae4f28 cmd/uplink: better error handling for parallel transfer
Few improvements were made to how we are handling errors
while doing parallel upload/download for single object:
* unhide error under 'context canceled' which was shown in most of
cases
* add part number to error message
* don't try to commit if any error occurs while operation
* combine errors into more readable form, example:

---
failed to download part 3: uplink: eestream: failed to download stripe 0:
error retrieving piece 00: ecclient: piecestore: rpc: tcp connector failed: rpc: dial tcp 97.119.158.36:28967: i/o timeout
...
error retrieving piece 89: ecclient: piecestore: rpc: tcp connector failed: rpc: dial tcp 161.129.152.194:28967: i/o timeout
failed to download part 1: uplink: eestream: failed to download stripe 0:
error retrieving piece 01: io: read/write on closed pipe
...
error retrieving piece 97: io: read/write on closed pipe
failed to download part 2: uplink: eestream: failed to download stripe 0:
error retrieving piece 00: io: read/write on closed pipe
...
error retrieving piece 01: ecclient: piecestore: rpc: tcp connector failed: rpc: dial tcp 180.183.132.234:28967: operation was canceled
error retrieving piece 96: io: read/write on closed pipe
	main.(*cmdCp).parallelCopy:418
	main.(*cmdCp).copyFile:262
	main.(*cmdCp).Execute:156
	main.(*external).Wrap:123
	github.com/zeebo/clingy.(*Environment).dispatchDesc:126
	github.com/zeebo/clingy.(*Environment).dispatch:53
	github.com/zeebo/clingy.Environment.Run:34
	main.main:26
	runtime.main:250
---

Change-Id: I9bb70b3f754567761fa8d17bef8ef59b0709e33b
2022-05-27 14:00:35 +00:00
..
certificates all: fix error naming 2021-04-29 15:38:21 +03:00
connect-test deps: upgrade storj.io/common 2022-02-16 18:59:19 +00:00
crashcollect crashcollect: process for receiving panics 2021-04-27 18:57:47 +03:00
identity ci: fix lint errors 2021-05-17 13:37:31 +00:00
inspector satellite: remove irreparabledb leftovers from code 2021-06-22 11:26:17 +00:00
internal/wizard cmd/internal/asset: delete unused code 2021-05-20 18:30:19 +03:00
metabase-orphaned-segments cmd,private,satellite: add application_name to metabase connections 2022-02-20 22:29:41 +01:00
metabase-verify cmd,private,satellite: add application_name to metabase connections 2022-02-20 22:29:41 +01:00
metric-receiver cmd/metric-receiver: restore minimal metrics server 2020-10-14 20:01:29 +03:00
multinode Dockerfiles: switch base image from alpine to Debian 2022-04-05 11:40:44 +00:00
nullify-bad-user-agents cmd/nullify-bad-user-agents: set user_agent to NULL where user_agent = partner_id 2022-03-31 16:57:50 -04:00
satellite satellite/repair/queue: buffer batch insert 2022-05-11 09:02:20 +00:00
storagenode cmd/storagenode: make supervisor HTTP Server configurable 2022-05-16 20:06:24 +00:00
storagenode-updater cmd/storagenode-updater: add should-update cmd 2022-04-12 17:55:54 +00:00
storj-admin all: fix linter complaints 2020-10-13 15:59:01 +03:00
storj-sim cmd/storj-sim: fix printing node url 2022-05-25 00:09:17 -06:00
uplink cmd/uplink: better error handling for parallel transfer 2022-05-27 14:00:35 +00:00
versioncontrol Dockerfiles: switch base image from alpine to Debian 2022-04-05 11:40:44 +00:00