-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
ErrConnClosing sometimes bubbles up as an rpcError #530
Comments
This is typically because you perform an rpc after closing ClientConn. I could help if you provide more info. Your code probably has a race. |
You're probably right, but that's to be expected; I have created the ClientConn with a |
Yes, it is expected. What I am missing here is that why it bothers you. |
My code is attempting not to log these expected errors:
where
So the wrapping in |
I would say this is incorrect. I do not know the purpose you want to do this. But transport is a private package which should only be used by grpc package (yes and some proxy which does not need to know the upper level grpc semantics). |
It's hard to give a small self-contained snippet, but the usage is here: cockroachdb/cockroach#4080 - the last commit adds this logging suppression. |
I would guess your definition of "uninteresting" is probably problematic. What is your intention? What errors do you want to filter out? |
As far as I can tell, there are two categories:
|
This sounds like what you want to do instead of why you want to do. Why do you want to ignore these two types of errors for logging? |
These errors only occur during shutdown; our bidirectional streaming RPCs never otherwise terminate. |
Discovered while investigating Example_logging failures.
I see stuff like this bubble up in my logs:
Normally I'd expect this not to appear, since I deliberately do not log
ErrConnClosing
, and the definition ofErrConnClosing
is the only instance of"transport is closing"
in grpc.The text was updated successfully, but these errors were encountered: