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

client: log last error on subchannel connectivity change #6109

Merged
merged 1 commit into from
Mar 15, 2023

Conversation

s-matyukevich
Copy link
Contributor

@s-matyukevich s-matyukevich commented Mar 9, 2023

This PR partially fixes #5831 by logging the last error when a subchannel connectivity changes to TransientFailure.

Right now, if a grpc client uses healthchecks with misconfigured serviceName and WithBlock() dial option it simply gets a timeout error. The problem got much worse by the fact that even with the most verbose debug logs we don't get any useful information about why the connection failed.

I understand the reasons why we don't want to add the healthcheck error information to the actual error that is returned to the user code, but we can at least log this error.

RELEASE NOTES: none

@easwars easwars self-assigned this Mar 14, 2023
@easwars easwars added the Type: Internal Cleanup Refactors, etc label Mar 14, 2023
@easwars easwars added this to the 1.54 Release milestone Mar 14, 2023
@easwars easwars removed their assignment Mar 14, 2023
@dfawley dfawley changed the title Log last error on subchannel connectivity change client: log last error on subchannel connectivity change Mar 15, 2023
@dfawley dfawley merged commit a1e657c into grpc:master Mar 15, 2023
1 check passed
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 12, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WithReturnConnectionError does not report errors related to health check
3 participants