-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
XdsNameResolver blindly propagates XdsClient errors #8950
Comments
Hi @ejona86 , curious how did you encounter the error? Shall we log the real error and always throw "UNAVAILABLE" to the client, while copying the cause and description details? |
At the least we should wrap and repackage the error. For example: "UNAVAILABLE: Unable to load Route 'Foo'. xDS server returned: NOT_FOUND: Requested entity was not found." This is unrelated to logging. |
This is part of the (now-available) v1.45.0 release. |
If a watch in XdsClient fails, XdsNameResolver will propagate the error directly to the channel without adding context and without setting a proper status.
grpc-java/xds/src/main/java/io/grpc/xds/XdsNameResolver.java
Line 725 in 3b9ff36
A user saw
And accompanying RPC failures:
That RPC failure is very bad, because it isn't clear it is from XdsNR and should be UNAVAILABLE.
As seen in b/221844501.
The text was updated successfully, but these errors were encountered: