Skip to content
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

XD-580 Perform fsync before writing new DB root #8

Closed
wants to merge 2 commits into from
Closed

Conversation

denvned
Copy link
Contributor

@denvned denvned commented Mar 20, 2017

We need to perform fsync before writing a new database root to ensure that the database root is written only after all other transaction data were persisted to disk. Without it there is a significant risk of getting corrupted database on a system failure, because the OS is free to persist cached file pages to disk out of order.

Most probably the fsync will cause some performance degradation, but I guess reliability is more important.

@penemue
Copy link
Contributor

penemue commented Mar 20, 2017

Wherever log.flush(true) is invoked manually, the exodus.log.durableWrite option is ignored.

@penemue
Copy link
Contributor

penemue commented Mar 23, 2017

XD-580 is reformulated,

@penemue penemue closed this Mar 23, 2017
@penemue penemue deleted the fsync branch March 27, 2017 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants