Improve GC routine #2866
Labels
enhancement
Improving existing functionality
I4
No visible changes
S2
Regular significance
U3
Regular
Is your feature request related to a problem? Please describe.
GC may be more intelligent. Currently, it only works with clear wording like "a user deleted an object" or "epoch N happened, so every object whose expiration is <= N-1 should expire too". But sometimes real garbage may appear in the storages (bad migration, shard error, bugs, configuration changes, missed meta change notification etc), and some background routine may try to monitor it.
Describe the solution you'd like
If some object without a container, lost object part, or some other object that should not exist is found, it should be GC-ed. A background routine fits well for this.
Describe alternatives you've considered
Some explicit external command like
vacuum
in the control service.Additional context
#2858 happened and there is a fix for it :#2863. However, it does not solve the problem fully: if some parts are stored and no parent header is found, it will never be GC-ed now.
It should be solved carefully. Situations, when a node believes that there is no object in the network, should be proved.
The text was updated successfully, but these errors were encountered: