Simplify writecache implementations #610
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 project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#610
Loading…
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?
Both writecache implementations have quite high cognitive complexity in my opinion. It would be nice to simplify them (or ideally, to remove them).
Do you have any specific ideas in mind?
SetMode
may be aClose + Open
combination. This is arguably simpler and won't hurt user operations: they all takemodeMtx
anyway. (thanks, @ale64bit )The problem here is that initialization stage may be too long. For example, counters and metrics initialization. For this we may have some logic in open: before the initialization check if they are already initialized.
I would recommend trying to implement something very simple, not using any existing key-value and without the need to iterate over the key space continuously.