storj/storagenode
Isaac Hess 17580fdf57 storagenode/pieces: Add test to cache store
This test checks that we are actually walking over the pieces when
starting the cache, and that it is returning expected values.

A recent outage was partially caused by the fact that this cache was
accidentally reading itself (via the pieces store, which has the cache
embedded). This test ensures that does not happen, and checks that when
the cache's `Run` method is called, the space used values are read from
disk and accurately update the cache.

Change-Id: I9ec61c4299ed06c90f79b17de3ffdbbb06bc502e
2020-02-05 11:39:06 -07:00
..
bandwidth storagenode/bandwidth: fix tests to not fail for 10 hours near the end of the month 2020-01-31 16:25:52 -07:00
collector storagenode: add pkg/debug support 2020-01-29 16:30:31 -05:00
console storagenode/console/consoleserver: set content-type manually 2020-02-03 15:37:47 +02:00
contact all: reduce number of log messages 2020-01-06 19:03:46 +00:00
gracefulexit storagenode: add pkg/debug support 2020-01-29 16:30:31 -05:00
inspector storagenode/pieces: Track total piece size 2020-01-23 11:00:24 -07:00
monitor storagenode/monitor: set MinimumDiskSpace default to 500GB. 2020-02-04 15:55:42 +00:00
nodestats storagenode: add pkg/debug support 2020-01-29 16:30:31 -05:00
notifications storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
orders storagenode: add pkg/debug support 2020-01-29 16:30:31 -05:00
pieces storagenode/pieces: Add test to cache store 2020-02-05 11:39:06 -07:00
piecestore storagenode/piecestore: log available bandwidth and space on uploads 2020-01-31 19:47:14 +00:00
preflight storagenode/preflight: wait for server to shutdown when tests are 2020-01-28 17:54:19 +00:00
reputation storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
retain storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
satellites storagenode/gracefulexit: fix exit-status command output 2020-01-15 14:58:15 +00:00
storagenodedb private/dbutil/txutil: create new transactions for retries 2020-02-01 18:34:28 +00:00
storageusage storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
trust storagenode: ensure we don't eat the underlying error 2020-01-14 20:26:23 +00:00
operator.go storagenode/main: map aliases for kademlia config values (#3118) 2019-09-30 19:33:00 -04:00
peer.go storagenode: Prevent negative values in piece_space_used, migrate negatives to 0 2020-01-30 13:03:18 -05:00