-
Notifications
You must be signed in to change notification settings - Fork 50
Fix metrics on parent objects' expiration #3717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
Regression from 9a49cd0. Before it, deletion code strongly relied that parent objects go no-op. Then it started to treat parent objects as physically stored ones. This led to incorrect metric tracking. In particular, shard counters. This was reproduced in DevEnv: when split objects expired, metrics became: ``` neofs_node_object_counter{shard="6pmbXUjzhKuvYnzrkUbeuP",type="logic"} -9 neofs_node_object_counter{shard="6pmbXUjzhKuvYnzrkUbeuP",type="phy"} -9 neofs_node_object_counter{shard="LpCtgJvdezqupmWtbM71rJ",type="logic"} -10 neofs_node_object_counter{shard="LpCtgJvdezqupmWtbM71rJ",type="phy"} -10 neofs_node_engine_payload_size{shard="6pmbXUjzhKuvYnzrkUbeuP"} -1.048743e+06 neofs_node_engine_payload_size{shard="LpCtgJvdezqupmWtbM71rJ"} -1167 ``` Refs #3477. Signed-off-by: Leonard Lyubich <[email protected]>
c450857 to
f27ca9f
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3717 +/- ##
=======================================
Coverage 26.87% 26.87%
=======================================
Files 658 658
Lines 41808 41808
=======================================
Hits 11235 11235
+ Misses 29536 29533 -3
- Partials 1037 1040 +3 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
roman-khimov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An update to counters is required as a part of migration as well. We've done it once, can do it again. We certainly have some expired big objects in mainnet, it's just that it's hard to notice anything in counters given the overall number/size of objects.
| if metaBucket != nil { | ||
| phyKey := slices.Concat([]byte{metaPrefixIDAttr}, oID[:], []byte(object.FilterPhysical), objectcore.MetaAttributeDelimiter, []byte(binPropMarker)) | ||
| if metaBucket.Get(phyKey) == nil { | ||
| return false, false, 0, nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think it's correct to leave garbageObjectsBKT entry. Also we we have a notion of available/unavailable objects and I'm not sure we're correctly handling those.
|
needs deeper examination |
No description provided.