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

Log ErrUnexpectedEOF from watches as warnings #2767

Merged
merged 1 commit into from
Dec 5, 2014

Conversation

ironcladlou
Copy link
Contributor

Watches are often established via long-running HTTP GET requests which
will inevitably time out during the normal course of operations. When
the watches time out, an io.EOF or an io.ErrUnexpectedEOF will bubble
up to client components such as StreamWatcher and Reflector. Treat EOF
as a clean watch termination. Treat ErrUnexpectedEOF as a less-clean
but non-fatal watch termination and log the event at the warning level.

This greatly reduces the amount of log noise generated during what is
ultimately normal operation, and adds the flexibility for the operator
to make a distinction between the EOF conditions if so desired (by
adjusting the logging level).

Watches are often established via long-running HTTP GET requests which
will inevitably time out during the normal course of operations. When
the watches time out, an io.EOF or an io.ErrUnexpectedEOF will bubble
up to client components such as StreamWatcher and Reflector. Treat EOF
as a clean watch termination. Treat ErrUnexpectedEOF as a less-clean
but non-fatal watch termination and log the event at the warning level.

This greatly reduces the amount of log noise generated during what is
ultimately normal operation, and adds the flexibility for the operator
to make a distinction between the EOF conditions if so desired (by
adjusting the logging level).
@ironcladlou
Copy link
Contributor Author

cc @lavalamp @pmorie @ncdc

@pmorie
Copy link
Member

pmorie commented Dec 5, 2014

LGTM 👍

bgrant0607 added a commit that referenced this pull request Dec 5, 2014
Log ErrUnexpectedEOF from watches as warnings
@bgrant0607 bgrant0607 merged commit f95503d into kubernetes:master Dec 5, 2014
@ironcladlou ironcladlou deleted the watch-error-handling branch December 5, 2014 21:54
@lavalamp
Copy link
Member

lavalamp commented Dec 5, 2014

Cool, thanks.

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

Successfully merging this pull request may close these issues.

4 participants