-
Notifications
You must be signed in to change notification settings - Fork 218
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
Repeated trace in log file with error #53
Comments
/priority important-soon |
https://github.com/kubernetes/klog/blob/master/klog.go#L926
This is going to create a new file for each severity. Opening three times (error, warning and info) the same file if we have defined a particular Not sure why the comment says that it is going to stop. |
it will stop if the files for a particular verbosity already exists (e.g. |
It's also configured to write to multiple files: Lines 765 to 777 in e88f730
|
/reopen the attempted fix for this caused severe performance regressions |
@liggitt: Reopened this issue. 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. |
fix was reverted in #69 |
When a new fix is developed for this issue, it must be accompanied by (or preceded by) benchmark tests that exercise the cases that regressed in kubernetes/kubernetes#78465 |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Any update on this? |
/kind bug
What steps did you take and what happened:
https://play.golang.com/p/6l8KNG_iOsM
Configuring klog to write to a file and logtostderr=false, the log file is openned and wrote three times with the same content.
Removing the flush, writes three times the headers, but no content.
What did you expect to happen:
Only one open and write.
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
The text was updated successfully, but these errors were encountered: