metrics: Fix container_size_bytes
for EC #1318
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1318
Loading…
Reference in a new issue
No description provided.
Delete branch "acid-ant/frostfs-node:bugfix/ec-fix-container-size-b"
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?
When node put chunk into EC container,
policer
may remove it as redundant.This chunk marked as removed. When parent object removed and
gc
start iterating over chunk,node count removing chunk twice.
Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com
metrics: Fixto WIP: metrics: Fixcontainer_size_bytes
for ECcontainer_size_bytes
for EC@ -213,6 +213,7 @@ func (s putStreamMetric) CloseAndRecv(ctx context.Context) (*object.PutResponse,
return res, err
}
unacceptable
ah, gofumpt
on a side-note -- we have added it in CI, doesn't it work now?
It seems this was introduced in patch, everything was green there.
@ -153,2 +153,3 @@
s.decContainerObjectCounter(res.RemovedByCnrID())
s.addToContainerSize(addr.Container().EncodeToString(), -int64(res.LogicSize()))
if res.LogicCount() > 0 {
s.addToContainerSize(addr.Container().EncodeToString(), -int64(res.LogicSize()))
So it seems we can have
LogicCount() == 0 && LogicSize() != 0
? How come?First version was introduced too earlier. There was expectation that we can upon on logic counter. PR updated.
a76e567f3a
to6ff0b0996b
WIP: metrics: Fixto metrics: Fixcontainer_size_bytes
for ECcontainer_size_bytes
for EC857dcb9d46
tocfda9003a7