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
Bug 1875841: watch-termination: fix deletion race and write non-graceful message also to termination.log #332
Bug 1875841: watch-termination: fix deletion race and write non-graceful message also to termination.log #332
Conversation
sttts
commented
Sep 4, 2020
- the loop creating the event was racing with the code touching the new .terminating file
- the event message lacked the hostname
- the termination.log file lacked the warning about the non-graceful termination which made it hard to follow.
af98ac4
to
114408e
Compare
return false, nil | ||
} | ||
|
||
select { | ||
case <-termCh: | ||
default: | ||
klog.Infof("Deleting old termination lock file %q", *terminationLock) | ||
os.Remove(*terminationLock) |
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.
these lines were executed when the event was successfully created. But the touch command few lines below would conflict with this. We have to delete first, then touch.
@sttts: This pull request references Bugzilla bug 1875841, which is invalid:
Comment 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. |
/bugzilla refresh |
@sttts: This pull request references Bugzilla bug 1875841, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
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. |
114408e
to
a6929ff
Compare
…-graceful message also to termination.log
a6929ff
to
db98f0f
Compare
/retest |
1 similar comment
/retest |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mfojtik, sttts The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@sttts: All pull requests linked via external trackers have merged: Bugzilla bug 1875841 has been moved to the MODIFIED state. 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. |