storj/uplink/storage
Ivan Fraixedes 071d1c4313
upload: Add more info to returned error response & to logs (#3218)
* uplink/storage/segments: return error no optimal threshold
  Return an error if the store get less uploaded pieces than the indicated
  by the optimal threshold.

* satellite/metainfo: Fix gRPC status error & add reason
  This commit fix the CommitSegment endpoint method to return an
  "Invalid Argument" status code when uplink submits invalid data which is
  detected when filtering invalid pieces by filterInvalidPieces endpoint
  method.

  Because filterInvalidPieces is also used by CommitSegmentOld, such
  method part has been changed accordingly.

  * An initial check in CommitSegment to detect earlier if uplink sends an
    invalid number of upload pieces.
  * Add more information to some log messages.
  * Return more information to uplink when it sends a number of invalid
    pieces which make impossible to finish the operation successfully.

* satellite/metainfo: Swap some "sugar" loggers to normal ones
  Swap "sugar" loggers to normal ones because they impact the performance
  in production systems and they should only be used under specific
  circumstances which were none of the ones changed.
2019-10-17 20:01:40 +02:00
..
buckets metainfo: Batch request (#2694) 2019-08-06 16:56:23 +02:00
meta rename all the things (#2531) 2019-07-28 08:55:36 +03:00
objects rename all the things (#2531) 2019-07-28 08:55:36 +03:00
segments upload: Add more info to returned error response & to logs (#3218) 2019-10-17 20:01:40 +02:00
streams all: use pkg/rpc instead of pkg/transport 2019-09-25 15:37:06 -06:00