-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage/engine: Do we need use_fsync? #16412
Comments
Which filesystems are "like ext3" in this respect? How common is ext3 these days? ext4 was the default in RHEL6, which is the oldest platform we support. I would expect (but have not verified) that all platforms we care about default to filesystems where this is not an issue. It would be nice if we could encapsulate this knowledge into rocksdb instead of doing our own inspection of the filesystem. |
This isn't new behavior in 1.1. Punting to 1.2. |
This is also discussed on the comment for I'm also kind of confused why this logic isn't encapsulated in RocksDB, especially because the criteria is pretty vague: "filesystems like ext3 that can lose files after a reboot". Is anyone aware of a way to detect systems that match this requirement? I've audited a few popular uses of RocksDB (MyRocks, MongoRocks, and TIKV) and none of them have any logic to handle this. In fact, the only project that even uses the |
Wearing my programmer-archaeologist hat: The line "filesystems like ext3 that can lose files after a reboot" was added in August 27, 2012 (facebook/rocksdb@fc20273) An So at the time that comment was written, ext4 was "like ext3" and could lose data if This is most interesting in the context of RHEL6, our oldest supported platform. They run with a custom kernel, branched from the mainline way back in 2.6.32 but with many fixes backported. I think the ext4 fix was not backported to the RHEL6 kernel until Dec 17 2015, in version 2.6.32-595.el6 (source) |
Removing milestone because I don't think we need to do anything involving the |
Upstream doesn't know of any other reason to set this flag, so I think we can just close this issue without exposing a way to set |
Fallout from discussion at #16361.
Source: rocksdb/wiki
This is a flag set on
rocksdb::Options
, it should somewhere happen here but we don't seem to be doing so.cc @petermattis.
The text was updated successfully, but these errors were encountered: