-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
apple_dns: Update the Apple DNS resolution details #36536
Conversation
Signed-off-by: Fredy Wijaya <fredyw@google.com>
/retest |
1 similar comment
/retest |
Signed-off-by: Fredy Wijaya <fredyw@google.com>
/assign @alyssawilk |
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.
argh failed to mail last week
@@ -378,6 +378,8 @@ void AppleDnsResolverImpl::PendingResolution::onDNSServiceGetAddrInfoReply( | |||
if (!(flags & kDNSServiceFlagsMoreComing) && isAddressFamilyProcessed(kDNSServiceProtocol_IPv4) && | |||
isAddressFamilyProcessed(kDNSServiceProtocol_IPv6)) { | |||
ENVOY_LOG(debug, "DNS Resolver flushing queries pending callback"); | |||
pending_response_.status_ = ResolutionStatus::Completed; | |||
pending_response_.details_ = "apple_dns_success"; |
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.
was this broken before? Can we regression test?
/wait
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.
We discovered some instances of not_set
in our testing, which gives the impression that the DNS query never gets executed. This is because by default, the status is set to Completed
and details to not_set
. This PR aims to fix the potential confusion.
I also updated the PR to add missing tests for the DNS resolution details that previously didn't exist.
Signed-off-by: Fredy Wijaya <fredyw@google.com>
/retest |
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.
thanks for suffering through testing via CI :-)
This PR updates the DNS resolution details from
apple_dns_success
toapple_dns_immediate_success
for an immediate success and fromnot_set
toapple_dns_success
for a successful case. This PR also adds missing test cases for the Apple DNS resolution details.Risk Level: low
Testing: unit tests
Docs Changes: n/a
Release Notes: n/a
Platform Specific Features: apple_dns