-
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: improve error message when matched route on client is not of type RouteActionRoute #6248
Conversation
For more descriptive errors from configSelector.SelectConfig() method
I've submitted the CLA document |
|
thanks for the review @easwars! I've locally implemented all the changes that have been suggested they are breaking a couple of tests in xds_resolver_test.go, so I'll work on resolving those + adding the |
hi @easwars and @tobotg
I also tried flipping the order and putting the (Output of does this contradict our working assumption that |
@Aditya-Sood Would you be interested in making that change? Once we do that, we can stop checking that the router filter is the last one in the list here. I can provide you with more information if you are interested to make that change. Please let me know. |
hi @easwars, yes I can work on that change too, please share the details with me |
I'm setting the |
So newInterceptor() shouldn't be checking for Router Filter and ignoring HTTP filters after, this was the legacy behavior that I should've deleted (the language iterated on here and deleted: https://github.com/grpc/proposal/pull/250/files) when I added the NACK check in the client for IsTerminal() here: #4676. newInterceptor() should simply just run the RPCs through all the filters. |
hi @zasweq
|
sorry for the delay in resolution, have been caught up with my day job |
hi @easwars and @zasweq
|
|
…ion' + Minor refactors
hi @easwars, thanks for the review!
|
Currently, the only supported route action type on the client is Yes, including test cases for |
thank you for the clarification! |
@zasweq for second set of eyes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Doug mentioned that he wishes that the Route Type enum can be plumbed all the way from the client so we can log the exact action that was unsupported, rather than blanket it in a RouteActionUnsupported log (equivalent to what the blanket enum type which is emitted from the xDS Client). However, unfortunately, we don't emit the proto enum for Route Action, so just something to think about for the future if we want to change it. This change fixing the semantics of the error message is an improvement though :), thanks for contribution.
Merged branch fixes #6259 as well |
Fixes #5921
RELEASE NOTES: none