Skip to content

klog: hide reflector.go warnings#1820

Merged
landism merged 1 commit into
masterfrom
matt/hide_reflector_warnings
Jul 8, 2019
Merged

klog: hide reflector.go warnings#1820
landism merged 1 commit into
masterfrom
matt/hide_reflector_warnings

Conversation

@landism

@landism landism commented Jul 8, 2019

Copy link
Copy Markdown
Member

Problem

informers annoyingly log spurious warnings, e.g.:
github.com/windmilleng/tilt/internal/k8s/watch.go:105: watch of *v1.Event ended with: The resourceVersion for the provided watch is too old.

I've seen these warnings pop up a number of times, and there's not really anything useful for a user to do in response to them.

If you google "resourceVersion for the provided watch is too old", you get a bunch of people asking what these mean and wondering why it's all over their logs, and all the answers I've seen have been "oh that doesn't matter, just ignore it".

When I've observed this warning in Tilt, I've seen no indication it's actually caused a problem, and I've still seen events.

This is a warning that happens at the watch level, but we're using the informer api on top of it, which handles it.

Solution

Suppress warnings from reflector.go.

This runs the risk of hiding other reflector.go warnings that are actually useful, but there are not currently any such warnings.

@landism
landism requested review from jazzdan and nicks July 8, 2019 16:53

@jazzdan jazzdan left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

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.

3 participants