What is the durablility guarantee?

21 views
Skip to first unread message

Jon Derrick

unread,
May 14, 2016, 4:14:46 PM5/14/16
to distributedlog-user
What is the durability guarantee in DistributedLog? Does every write have to flush to disk? When does it flush? when calling write is completed, or in the callback of the future?

Jia Zhai

unread,
May 15, 2016, 11:11:43 AM5/15/16
to distributedlog-user
Here is my understanding based on Bookkeeper. :)
When you get the callback, the write is persist.  Every write will flush to disk. But the callback could be got earlier than that,
In Bookkeeper, The data is first write into a journal file, then it could do the callback. The real flush happens later. If system paniced before the real flush happened (the data is in Bookies system cache), Bookkeeper could do log-replay from journal file, which kept the write content, to make the write persist on disk. 

Jon Derrick

unread,
May 16, 2016, 2:37:07 AM5/16/16
to distributedlog-user
Thanks Jia.

jderrick
Reply all
Reply to author
Forward
0 new messages