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

Downgrade temporary net.Error to warning #35

Merged
merged 1 commit into from
Mar 26, 2019

Conversation

lavoiesl
Copy link
Contributor

The sharedstore is meant to gracefully degrade when the shared lock is not available.

As such, a temporary connection issue like timeouts is not worthy of logging at the Error level.

To allow this, recreate a net.OpError from the potential memcache.ConnectTimeoutError such that it can be properly detected as a temporary error.

Note that memcache can still generate regular i/o timeout errors, which are proper net.Error already.

@lavoiesl lavoiesl requested a review from a team as a code owner March 25, 2019 20:27
The sharedstore is meant to gracefully degrade when the shared lock is
not available.

As such, a temporary connection issue like timeouts is not worthy of
logging at the Error level.
Copy link

@ceh ceh left a comment

Choose a reason for hiding this comment

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

Nice PR description! LGTM.

@lavoiesl lavoiesl merged commit a2b6449 into master Mar 26, 2019
@lavoiesl lavoiesl deleted the seb-warn-temporary-errors branch March 26, 2019 14:02
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