-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
xds: report more descriptive error when matched route on client is not of type RouteActionRoute
#5921
Comments
hi @easwars and @arvindbr8, can I work on this? |
@Aditya-Sood : Thank you for your offer. I'm assigning this to you. |
The ideal fix should look something like this:
Hope this helps. Please let us know if you have more questions before/when you start working on this. |
thank you @easwars, I will keep updating here on the progress |
An issue me and Doug just discussed is that we don't actually plumb in the full enum to our internal representation. Right now, there's a bucket of RouteActionUnsupported that encapsulates all the route actions we don't support client or sever side. We would have to scale this up as well alongside passing this information to the config selector. |
update: have asked for clarification on the remaining types of route actions to cover for the returned error - link to comment |
In the config selector's
SelectConfig
method, we look for a matching route, and if we don't find one or the matched route does not contain clusters, we fail the RPC:grpc-go/xds/internal/resolver/serviceconfig.go
Line 158 in f2fbb0e
It would be better if we check the route action type on the matched route and return a more meaningful error, when the route action type is not
RouteActionRoute
which is the only supported one on the client. https://github.com/grpc/grpc-go/blob/master/xds/internal/xdsclient/xdsresource/type_rds.go#L101-L115The text was updated successfully, but these errors were encountered: