storj/uplink/piecestore
Ivan Fraixedes 9caa3181d3
uplink/piecestore: Check SN piece hash timestamp (#3246)
Uplink must verify that every piece upload to a storage node return a
hash whose timestamp isn't older than the maximum elapsed time allowed
by the Satellite.

We cannot leave this check only to the Satellite site, because if there
is no error reported by this matter, the uplink cuts down the long tail.
When uplink submits the result uploads including these invalid ones, the
Satellite filters out the invalid ones and that can provoke that it gets
less than the optimal threshold amount of valid upload results, so it
rejects the request.

Detecting the error at this stage will allow the uplink to detect these
uploads as invalid and avoid to cut down the long tail prematurely.
2019-10-15 16:07:18 +02:00
..
buffering.go storagenode/piecestore + uplink/piecestore: return PieceHash and original OrderLimit during GET_REPAIR (#2775) 2019-08-26 14:57:41 -04:00
client.go all: use pkg/rpc instead of pkg/transport 2019-09-25 15:37:06 -06:00
download.go all: use pkg/rpc instead of pkg/transport 2019-09-25 15:37:06 -06:00
upload.go all: use pkg/rpc instead of pkg/transport 2019-09-25 15:37:06 -06:00
verification.go uplink/piecestore: Check SN piece hash timestamp (#3246) 2019-10-15 16:07:18 +02:00