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
Do not acquire lock for file.Sync() fsync call #404
base: main
Are you sure you want to change the base?
Conversation
|
Welcome @1978629634! |
5c6f209
to
425d338
Compare
Hi @pohly @harshanarayana @mengjiao-liu , Could you please take a look at this pull request when you have a chance? I'd appreciate your review and feedback. |
xref: golang#68 |
425d338
to
a3c1718
Compare
Could you please review it again? |
/lgtm |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: 1978629634, yuzhiquan The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
a3c1718
to
ccda4e7
Compare
New changes are detected. LGTM label has been removed. |
The changes to the glog have a potential issue. Besides the FlushDaemon, there is also an exit() call that invokes flushAll. If we release the lock and call file.Sync() in the exit code, the program may continue to write logs, which could lead to the program running longer than expected. |
/assign @pohly |
@pohly I'd appreciate it if you could take a look at this pull request and offer any suggestions you may have. Your feedback would be invaluable. Thank you so much! |
I have it on my TODO list, but it may take a while before I get to it. |
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.
/triage accepted
/assign @pohly
/assign @shiva1333 |
@logicalhan: GitHub didn't allow me to assign the following users: shiva1333. Note that only kubernetes members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What this PR does / why we need it:
For file.Sync() (the fsync system call that flushes the kernel buffer to disk), there is no need to acquire a lock; let the kernel handle it.
Which issue(s) this PR fixes:
Fixes #403
Release note: