Skip to content
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

Revert "dns: stop polling for updates; use UpdateState API" #3213

Merged
merged 1 commit into from
Nov 27, 2019

Conversation

menghanl
Copy link
Contributor

Reverts #3165

The change breaks clients using DNS resolver, including all interop tests: grpc/grpc#21301

@menghanl
Copy link
Contributor Author

DNS's LookupTXT() fails with NotFound error when txt record doesn't exist for the host. With the change in #3165, this will cause a serviceconfig.ParseResult with Err set to non-nil.
Since it's the first update for the client, there's no previous resolver update, the ClientConn will be put in transient failure mode, and re-resolve will be triggered.

The service config handling for service config with error seems to be working as intended. The fix should be to not return an error if LookupTXT failed with NotFound.
A fix for this is in: #3212

@menghanl menghanl merged commit 9dc72d1 into master Nov 27, 2019
@menghanl menghanl deleted the revert-3165-dnsnopoll branch November 27, 2019 00:07
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants