mirror of
https://github.com/nspcc-dev/neofs-node.git
synced 2026-03-01 04:29:10 +00:00
Node can't remove object marked for deletion #1381
Labels
No labels
I1
I2
I3
I4
S0
S1
S2
S3
S4
U0
U1
U2
U3
U4
blocked
bug
config
dependencies
discussion
documentation
enhancement
enhancement
epic
feature
go
good first issue
help wanted
neofs-adm
neofs-cli
neofs-cli
neofs-cli
neofs-ir
neofs-lens
neofs-storage
neofs-storage
performance
question
security
task
test
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-node#1381
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @roman-khimov on GitHub (Mar 19, 2025).
Originally assigned to: @carpawell on GitHub.
Expected Behavior
Drop whatever data we have, the object is marked for deletion.
Current Behavior
If there is anything bad in the metabase, it can't remove object data:
Possible Solution
Drop things we can't parse.
Context
Mainnet. Related to old replication bugs that left these chunks of data in the metabase.
Your Environment
@roman-khimov commented on GitHub (Mar 19, 2025):
Unmarshaling is needed to get object parent (and size, but it's the same wrt this), but we already have this data in SearchV2 index. So if we're to reuse it we can avoid unmarshaling and make things a bit faster at the same time.
@carpawell commented on GitHub (Mar 19, 2025):
@roman-khimov, @cthulhu-rider, just a clarification for this issue: this is an important bug for now for the exact corruption reason but its solution (i meant the exact issue's wording) requires an assumption that searchV2 index (and it does mean its migration in fact) is alive and ok even for corrupted data, do we assume it? Dropping anything we cannot unmarshal is easy of course, but dropping "whatever data we have" is a little bit trickier.
@roman-khimov commented on GitHub (Mar 20, 2025):
No unmarshaling --- no problem. These objects obviously were not migrated (no data to migrate), but that's not a problem either --- no parent is no parent.