Switch container size metric from physical to logical capacity #42
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#42
Loading…
Reference in a new issue
No description provided.
Delete branch "OBJECT-2783_change-size-metric-to-logical"
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?
Closes #47
Looks like debug change.
@ -11,6 +11,7 @@ Changelog for FrostFS Node
- Add command `frostfs-adm morph netmap-candidates` (#1889)
### Changed
- Change `frostfs_node_engine_container_size` to counting sizes of logical objects
to count
?We use and append them together, why not store them together? (define a private struct, return 2 values as you already do).
It is local to the package, let's at least make it private. An I see it used only once, maybe we do not need a function at all?
Can we remove this comment? It is (was) misleading
logical counter
shouldn't increase at all on removal, what we increase is some other counter.Why have you decided to have it outside
if
?@ -11,6 +11,7 @@ Changelog for FrostFS Node
- Add command `frostfs-adm morph netmap-candidates` (#1889)
### Changed
- Change `frostfs_node_engine_container_size` to counting sizes of logical objects
Change {subject} to {doing something}. Looks correct to me.
It is inside the
if
now.I mean, it always was inside the
if
. Do you mean something else?I mean you have
if inGraveyardWithKey(targetKey, graveyardBKT, garbageBKT) == 0 {
below andcontainerID
is used only there. There are 2 related lines which are divided in this commit for some reason.