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

distsql: reduce log severity of inbound stream error #44020

Merged
merged 1 commit into from
Jan 15, 2020

Conversation

asubiotto
Copy link
Contributor

@asubiotto asubiotto commented Jan 15, 2020

Inbound streams may error out for normal reasons. One of these is when a
context cancellation happens. Any error was logged at the ERROR level, that
severity has now been reduced to INFO and the required verbosity to log has
been increased to 2.

Release note (bug fix): A benign error previously logged at the ERROR level
is now logged at the INFO level behind a verbosity(2) flag. This error might
have been observed as "context canceled: readerCtx in Inbox stream handler".

Fixes #43953

Inbound streams may error out for normal reasons. One of these is when a
context cancellation happens. Any error was logged at the ERROR level, that
severity has now been reduced to INFO and the required verbosity to log has
been increased to 2.

Release note (bug fix): A benign error previously logged at the ERROR level
is now logged at the INFO level behind a verbosity(2) flag. This error might
have been observed as "context canceled: readerCtx in Inbox stream handler".
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@asubiotto
Copy link
Contributor Author

Fixes #43953
cc @awoods187 @roncrdb

Copy link
Member

@yuzefovich yuzefovich left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained

@asubiotto
Copy link
Contributor Author

TFTR

bors r+

craig bot pushed a commit that referenced this pull request Jan 15, 2020
44020: distsql: reduce log severity of inbound stream error r=asubiotto a=asubiotto

Inbound streams may error out for normal reasons. One of these is when a
context cancellation happens. Any error was logged at the ERROR level, that
severity has now been reduced to INFO and the required verbosity to log has
been increased to 2.

Release note (bug fix): A benign error previously logged at the ERROR level
is now logged at the INFO level behind a verbosity(2) flag. This error might
have been observed as "context canceled: readerCtx in Inbox stream handler".

Fixes #43953 

Co-authored-by: Alfonso Subiotto Marques <alfonso@cockroachlabs.com>
@craig
Copy link
Contributor

craig bot commented Jan 15, 2020

Build succeeded

@craig craig bot merged commit b1345bb into cockroachdb:master Jan 15, 2020
@asubiotto asubiotto deleted the fix-43953 branch January 15, 2020 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error messaging when reader cancels the stream.
3 participants