-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Commit registry writes to stable storage to avoid corrupt registry files #6877
Commit registry writes to stable storage to avoid corrupt registry files #6877
Conversation
I don't think we need O_DIRECT. Alternatively to the different Something went wrong. Almost all filebeat tests are failing. |
I agree with @urso. I see that there is a missing fsync in Winlogbeat before the rename. |
PR will need a changelog. |
@urso @andrewkroh Thanks for the early review! I assumed that something is not right that's why I haven't added the label "review" to my PR. :) |
7caee89
to
98ef1fe
Compare
Apparently, the CIs are on fire... |
Please, image that I have removed the label "in progress" from this PR. :D |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also make the same change in Winlogbeat and remove the specialized code I added.
…les (elastic#6877) * fsync contents of registry file to storage (cherry picked from commit 4d2150d)
…les (elastic#6877) (elastic#7019) * fsync contents of registry file to storage (cherry picked from commit 6babaae)
Called
Sync
before closing the file in order to flush everything to disk before closing the registry file.Closes #6792