storj/storagenode
Moby von Briesen db480e6e1b storagenode/orders: Improve performance of handling corrupt orders.
This change fixes two things which can make reading from a corrupted
orders file inefficient.
* When a corrupted order is detected, but the underlying error is an
UnexpectedEOF (as opposed to a pb.Unmarshal error, for instance), there
is no point in attempting to read from the file another time to find an
additional uncorrupted order - we will continue to get UnexpectedEOF
errors until we seek to the very end of the file and get a normal EOF.
Instead, when UnexpectedEOF occurs, log and send metrics as with other
types of corruption, but do not attempt to read again.
* When a corrupted order is detected, instead of seeking forward only
one byte for the next attempt, seek forward by the size of entryHeader.
This cuts down on the number of iterations needed to find an uncorrupted
order after detecting a corrupted one.

Change-Id: Ie1a613127e29d29318584ec7f60e8f7554f73487
2020-11-16 14:08:36 +00:00
..
apikey storagenode/secret: db tests added, small renaming fixes added 2020-10-29 14:23:04 +02:00
bandwidth all: fix dots 2020-07-16 14:58:28 +00:00
collector error handling in heldamount cash and collector delete fixed 2020-07-22 12:26:13 +00:00
console stefan benten satellited added to historical payout data 2020-11-09 15:43:41 +00:00
contact all: fix linter complaints 2020-10-13 15:59:01 +03:00
gracefulexit satellite/metainfo: Update metainfo RS config to more easily support multiple RS schemes. 2020-11-09 22:16:13 +00:00
inspector storagenode/internalpb: move inspector.proto 2020-10-30 14:51:26 +02:00
internalpb {satellite,storagenode}/internalpb: use specific package name 2020-10-30 17:31:08 +02:00
monitor {cmd,private,storagenode}: create storage dir verification during setup 2020-11-11 11:01:36 -05:00
nodestats storagenode/suspensions: added offline-suspension notificatio chore + tests 2020-10-29 19:44:22 +02:00
notifications storagenode/suspensions: added offline-suspension notificatio chore + tests 2020-10-29 19:44:22 +02:00
orders storagenode/orders: Improve performance of handling corrupt orders. 2020-11-16 14:08:36 +00:00
payout stefan benten satellited added to historical payout data 2020-11-09 15:43:41 +00:00
pieces all: fix linter complaints 2020-10-13 15:59:01 +03:00
piecestore mod: bump dependencies and reenable test 2020-11-10 10:32:21 +00:00
piecetransfer storagenode/gracefulexit: logic moved from worker to service 2020-10-22 23:19:30 +00:00
preflight all: fix dots 2020-07-16 14:58:28 +00:00
pricing storagenode/nodestats: add pricing model, storagenode/cache: add paystub history storing 2020-04-14 19:04:00 +03:00
reputation storagenode/suspensions: added offline-suspension notificatio chore + tests 2020-10-29 19:44:22 +02:00
retain storagenode: fixed logging about piece being moved to trash, and added logging when piece was actually deleted 2020-08-02 20:00:05 +03:00
satellites all: fix linter complaints 2020-10-13 15:59:01 +03:00
storagenodedb all: fix defers in loop 2020-11-02 15:06:38 +02:00
storageusage storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
trust all: add missing dots 2020-08-11 17:50:01 +03:00
version storagenode/suspensions: added offline-suspension notificatio chore + tests 2020-10-29 19:44:22 +02:00
operator.go all: fix dots 2020-07-16 14:58:28 +00:00
peer.go stefan benten satellited added to historical payout data 2020-11-09 15:43:41 +00:00