storj/storagenode/pieces
Clement Sam 07beef378d storagenode/collector: delete expired piece info if file does not exist
The collector tries deleting a piece over and over again, though
the piece does not exist on the storagenode's filesystem.
We need to delete the piece info from the expired db if the
targeted file does not exist.
This does not resolve the base problem of why the file
is deleted before the collector tries deleting it.
This change deletes the piece info from the expired db
if the file does not exist, since we're already trying
to delete that piece anyway.

Closes https://github.com/storj/storj/issues/4192

Change-Id: If659185ca14f1cb29fd3c4237374df6fcd535df8
2022-09-15 12:29:29 +00:00
..
cache_test.go storagenode/satellite: support different piece hash algorithms 2022-08-23 18:15:06 +00:00
cache.go storagenode/pieces: allow to configure initial piece scan (#5024) 2022-08-07 22:40:59 +00:00
db_test.go storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
deleter_test.go storagenode/satellite: support different piece hash algorithms 2022-08-23 18:15:06 +00:00
deleter.go storagenode/pieces: send piece deletions to trash 2021-04-07 16:52:10 +00:00
doc.go storagenode: add doc.go files for sno packages 2021-09-29 08:24:56 +00:00
pieceexpiration_test.go storagenode/storagenodedb/storagenodedbtest: pass ctx as an argument 2020-01-20 16:56:12 +02:00
readwrite_test.go storagenode/satellite: support different piece hash algorithms 2022-08-23 18:15:06 +00:00
readwrite.go storagenode/satellite: support different piece hash algorithms 2022-08-23 18:15:06 +00:00
store_test.go storagenode/satellite: support different piece hash algorithms 2022-08-23 18:15:06 +00:00
store.go storagenode/collector: delete expired piece info if file does not exist 2022-09-15 12:29:29 +00:00
trashchore.go storagenode/pieces: tidying trash log 2020-09-24 11:55:06 +03:00