writecache: Fix small object flush #726
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
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#726
Loading…
Reference in a new issue
No description provided.
Delete branch "dstepanov-yadro/frostfs-node:feat/fix_flush_small_objects"
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?
Now
object.Marshal()
for small objects is called twice: before put to writecache and before put to blobstore. Lets fix it!58648a1a0b
to43f7b207ce
@ -137,3 +138,3 @@
count++
select {
case c.flushCh <- obj:
case c.flushCh <- m[i]:
At line 90 we do
m = m[:0]
, can this lead to problems?IMO this optimization is more important, then slice reuse, so we may drop line 90 if needed.
fixed
43f7b207ce
toeb08180367
eb08180367
tod07afd803c