-
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
On result2 resolution result have addresses or error #11330
On result2 resolution result have addresses or error #11330
Conversation
…the acceptance of the name resolution by the load balancer.
…the acceptance of the name resolution by the load balancer.
…dressesOrError' into onResult2_resolutionResultHaveAddressesOrError # Conflicts: # api/src/main/java/io/grpc/NameResolver.java # core/src/test/java/io/grpc/internal/DnsNameResolverTest.java # netty/src/test/java/io/grpc/netty/UdsNameResolverTest.java
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.
Rebase this once #11313 goes in, as it is hard to read now. We'll want to discuss this in the next API review meeting.
I synced and resolved conflicts from the website, and ended up with some compilation errors. Will pull changes to my cloudtop, fix them and upload the changes. |
…ro android build there is a warning and it seems to get treated as an error because of my change and cause failure.
…ed with a timeout.
Let's discuss this in the next API review meeting. |
Co-authored-by: Sergii Tkachenko <[email protected]>
Implemented changes discussed:
|
…alStateException if there is no value set.
…dressesOrError' into onResult2_resolutionResultHaveAddressesOrError
|
…dressesOrError' into onResult2_resolutionResultHaveAddressesOrError
Code coverage check was failing including for some of the existing lines that I touched that previously didn't have coverage. Fixed all code coverage errors. PTAL @ejona86 . |
Combined success / error status passed via ResolutionResult to the NameResolver.Listener2 interface's onResult2 method - Addresses in the success case or address resolution error in the failure case now get set in ResolutionResult::addressesOrError by the internal name resolvers.
Changes for passing the error status via ResolutionResult, and enhancing the ResolutionResult for the same. This PR is branched from the branch used for #11313 that introduced onResult2 returning the Status.