Simplify write-cache (SUPPORT) #353
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
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#353
Loading…
Reference in a new issue
No description provided.
Delete branch "fyrchik/frostfs-node:simplify-cache-support"
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?
Based on #314 minus counters logic.
@ -71,3 +71,2 @@
c.modeMtx.RLock()
if c.readOnly() || !c.initialized.Load() {
// TryRLock doc explicitly mentions that correct usages are rare.
I am open to suggestions here.
Removed this, make closing in 2 steps.
e0094e9516
to731e526ddd
@ -167,16 +156,17 @@ func (c *cache) Close() error {
return err
}
fmt.Println(c.closeCh == nil)
are these supposed to be committed?
fixed
Disregarding the usage of
TryLock
which is usually a smell (perhaps aCond
is better here), I find the code really difficult to read and reason about. For example, I would be afraid of changing anything :) I'm not sure if some extra code comments or assertions would help to understand which invariants are maintained throughout the flushing process.@ale64bit how exactly can you use
Cond
here?731e526ddd
to3711976dfc
control shards flush-cache
and after cache was full filled #276