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

Make sure to fsync properly when saving snapshot files #229

Closed
preetapan opened this issue Aug 3, 2017 · 2 comments
Closed

Make sure to fsync properly when saving snapshot files #229

preetapan opened this issue Aug 3, 2017 · 2 comments
Assignees

Comments

@preetapan
Copy link

file_snapshot.go doesn't explicitly call fsync before close(). This leads to an edge case during machine crashes where the file we renamed doesn't exist on disk.

@preetapan preetapan self-assigned this Aug 3, 2017
@romfreiman
Copy link

@preetapan
Copy link
Author

@slackpad merged to all three branches and updated consul's vendor directory for this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants