Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
loeg
· 6mo ago · 0 comments
This design ACKs writes that aren't yet durably persisted (to the journal or data areas). That might be ok, but it might not. It's certainly unusual not to at least persist the journal update.
Comments
[–]
zzsheng
6mo ago
nop. we will not ack any write which is not in data or journal. please check the put details in the blog.
[–]
loeg
OP
6mo ago
You initiate a write to the journal, but do not sync it before ACKing to the client.
[–]
zzsheng
6mo ago
journal file was pre-alloacated and we use direct-io for journal write so no need to call fsync.
[–]
loeg
OP
6mo ago
Again, it is not durably persisted
before
acking to the client. Like I said earlier, that might be fine for your durability model, but it is unusual.