Skip to content

netty: refine filtering for benign transport level exceptions#5873

Merged
carl-mastrangelo merged 1 commit intogrpc:masterfrom
nicktrav:nickt.error-message
Jun 13, 2019
Merged

netty: refine filtering for benign transport level exceptions#5873
carl-mastrangelo merged 1 commit intogrpc:masterfrom
nicktrav:nickt.error-message

Conversation

@nicktrav
Copy link
Copy Markdown
Contributor

@nicktrav nicktrav commented Jun 12, 2019

Transport level exceptions (e.g. "Connection reset by peer") are not
useful and clutter the logs. NettyServerTransport contains logic to
log such exceptions at level FINE.

When running with epoll, transport level exceptions are prefixed with
additional contextual information (e.g. "syscall:read(..) failed:") that
causes the exceptions to be logged at level INFO.

Update the filtering logic to match on error messages containing the
blacklisted messages, rather than using string equality.

Closes #5872.

Signed-off-by: Nick Travers n.e.travers@gmail.com

@thelinuxfoundation
Copy link
Copy Markdown

Thank you for your pull request. Before we can look at your contribution, we need to ensure all contributors are covered by a Contributor License Agreement.

After the following items are addressed, please respond with a new comment here, and the automated system will re-verify.

Regards,
CLA GitHub bot

@nicktrav
Copy link
Copy Markdown
Contributor Author

I signed it.

Transport level exceptions (e.g. "Connection reset by peer") are not
useful and clutter the logs. `NettyServerTransport` contains logic to
log such exceptions at level `FINE`.

When running with epoll, transport level exceptions are prefixed with
additional contextual information (e.g. "syscall:read(..) failed:") that
causes the exceptions to be logged at level `INFO`.

Update the filtering logic to match on error messages _containing_ the
blacklisted messages, rather than using string equality.

Closes grpc#5872.

Signed-off-by: Nick Travers <n.e.travers@gmail.com>
@nicktrav nicktrav force-pushed the nickt.error-message branch from 1414388 to 06e2a5c Compare June 12, 2019 22:08
@thelinuxfoundation
Copy link
Copy Markdown

Thank you for your pull request. Before we can look at your contribution, we need to ensure all contributors are covered by a Contributor License Agreement.

After the following items are addressed, please respond with a new comment here, and the automated system will re-verify.

Regards,
CLA GitHub bot

@zhangkun83 zhangkun83 changed the title Refine filtering for benign transport level exceptions netty: refine filtering for benign transport level exceptions Jun 12, 2019
Copy link
Copy Markdown
Contributor

@carl-mastrangelo carl-mastrangelo left a comment

Choose a reason for hiding this comment

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

LGTM

@zhangkun83
Copy link
Copy Markdown
Contributor

@ejona86, looks like the CLA bot isn't working correctly.

@nicktrav
Copy link
Copy Markdown
Contributor Author

I signed it.

@zhangkun83 zhangkun83 added the kokoro:force-run Add this label to a PR to tell Kokoro to re-run all tests. Not generally necessary label Jun 13, 2019
@grpc-kokoro grpc-kokoro removed the kokoro:force-run Add this label to a PR to tell Kokoro to re-run all tests. Not generally necessary label Jun 13, 2019
@carl-mastrangelo carl-mastrangelo merged commit 6aed342 into grpc:master Jun 13, 2019
@carl-mastrangelo
Copy link
Copy Markdown
Contributor

@nicktrav merged, thanks!

@nicktrav nicktrav deleted the nickt.error-message branch June 14, 2019 20:54
@lock lock bot locked as resolved and limited conversation to collaborators Sep 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Benign exception messages are logged at level INFO

5 participants