storj/storagenode/pieces
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
..
cache_test.go storagenode/pieces: Add test to cache store 2020-02-05 11:39:06 -07:00
cache.go storagenode/pieces: Add test to cache store 2020-02-05 11:39:06 -07:00
db_test.go storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
pieceexpiration_test.go storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
readwrite_test.go storagenode: ensure we don't eat the underlying error 2020-01-14 20:26:23 +00:00
readwrite.go storagenode/pieces: Log error if cannot calculate piece size 2020-01-31 09:57:44 -05:00
store_test.go storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
store.go storagenode/pieces: Log error if cannot calculate piece size 2020-01-31 09:57:44 -05:00
trashchore.go all: reduce number of log messages 2020-01-06 19:03:46 +00:00