Ensure StorageID
in metabase is used correctly
#2888
Labels
enhancement
Improving existing functionality
I4
No visible changes
S3
Minimally significant
U3
Regular
Is your feature request related to a problem? Please describe.
I'm always frustrated when we use "dynamic" code. In the storage engine currently, we can accept any (non-empty) storage ID and think that it corresponds to the peapod (or blobovniczas tree earlier). In fact, we now store
1/2
IDs that are left by blobovnizcas (it was a migration mistake or some garbage) and nobody knows it.Describe the solution you'd like
If a storage ID is unknown, do
WARN
orERROR
logs. All the storages can be checked additionally. Such a situation is completely erroneous, a metabase must be in sync with a blobstor, no unexpected IDs should be found.neofs-node/pkg/local_object_storage/blobstor/get.go
Lines 29 to 32 in e6eeda1
Describe alternatives you've considered
(:
Additional context
I have found blobovnicza tree's IDs in mainnet when looked at #2844.
The text was updated successfully, but these errors were encountered: