Bitcask with sync_strategy o_sync seem to have no effect

David Smith dizzyd at
Wed Aug 31 00:22:58 EDT 2011

On Tue, Aug 30, 2011 at 8:57 PM, Tatsuya Kawano <tatsuya6502 at> wrote:

> The current behavior could be dangerous if someone rely on {sync_strategy, o_sync} for durability.
> My colleague checked Bitcask implementation and found that it uses "fcntl (2)" system call to set O_SYNC flag to the file descriptor. Unfortunately, O_SYNC being set by this way will be ignored by kernel and has no effect. To make it work, Betcask should call "open" system call with O_SYNC option.

Tatsuya, thanks for the pointer on this. I will take a look into this
more carefully tomorrow.


Dave Smith
Director, Engineering
Basho Technologies, Inc.
dizzyd at

More information about the riak-users mailing list