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 errors from the server channel. #791

Merged
merged 1 commit into from
May 13, 2020

Conversation

Lukasa
Copy link
Collaborator

@Lukasa Lukasa commented May 13, 2020

Motivation:

When the child channel initializer fails, or if any part of child
channel setup fails, the error that results is not thrown into that
child channel but is instead propagated into the server channel. As
nothing in grpc was listening for errors there, those errors got lost.
This can make some problems particularly tricky to debug, as they lead
to silent service failures.

Modifications:

  • Added a channel handler to be put in all server channels.

Results:

Server channel creation errors now get propagated into the error
delegate.

@Lukasa Lukasa requested a review from glbrntt May 13, 2020 14:07
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented May 13, 2020

CLA Check
The committers are authorized under a signed CLA.

@Lukasa Lukasa force-pushed the cb-logging-on-initializer-failure branch from 2d9cdc6 to 392b2bd Compare May 13, 2020 14:14
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

Looks great, but you need to run swift test --generate-linuxmain I'm afraid

Motivation:

When the child channel initializer fails, or if any part of child
channel setup fails, the error that results is not thrown into that
child channel but is instead propagated into the server channel. As
nothing in grpc was listening for errors there, those errors got lost.
This can make some problems particularly tricky to debug, as they lead
to silent service failures.

Modifications:

- Added a channel handler to be put in all server channels.

Results:

Server channel creation errors now get propagated into the error
delegate.
@Lukasa Lukasa force-pushed the cb-logging-on-initializer-failure branch from 392b2bd to 6696840 Compare May 13, 2020 14:53
@Lukasa Lukasa requested a review from glbrntt May 13, 2020 15:18
Copy link
Collaborator

@glbrntt glbrntt left a comment

Choose a reason for hiding this comment

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

LGTM!

@glbrntt glbrntt merged commit 0db6306 into grpc:master May 13, 2020
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Jun 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants