操作系统宕机导致缓存丢失的问题

154 views
Skip to first unread message

Zhaorong Tang

unread,
May 1, 2017, 11:19:14 AM5/1/17
to Seaweed File System
我注意到 index 文件的写入只进行了 Write 而没有 Sync(当然加入 Sync 会极大的限制性能)。

那么在极端情况下(断电、ups 挂掉、操作系统宕机),操作系统中 index 文件的缓存可能并没有及时的 Sync 到文件中。

这可能导致 index 文件中某一个 entry 只写入了一部分,这种情况请问有预防或者处理方案么?谢谢


nm.indexFile.Write(bytes)


Chris Lu

unread,
May 1, 2017, 12:40:22 PM5/1/17
to Seaweed File System
The last entry will be skipped.

Chris

--
You received this message because you are subscribed to the Google Groups "Seaweed File System" group.
To unsubscribe from this group and stop receiving emails from it, send an email to seaweedfs+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages