-
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
dns: fix resolving STRICT_DNS cluster endpoint FQDN with trailing dot '.' #13644
Conversation
CC @htuch |
Signed-off-by: Łukasz Marszał <lmarszal@gmail.com>
Signed-off-by: Łukasz Marszał <lmarszal@gmail.com>
Signed-off-by: Łukasz Marszał <lmarszal@gmail.com>
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 the fix, couple of short questions.
"//bazel:windows_x86_64": "cp -L $EXT_BUILD_ROOT/external/com_github_c_ares_c_ares/nameser.h $INSTALLDIR/include/nameser.h", | ||
"//conditions:default": "", | ||
"//bazel:windows_x86_64": "cp -L $EXT_BUILD_ROOT/external/com_github_c_ares_c_ares/src/lib/nameser.h $INSTALLDIR/include/nameser.h && cp -L $EXT_BUILD_ROOT/external/com_github_c_ares_c_ares/src/lib/ares_dns.h $INSTALLDIR/include/ares_dns.h", | ||
"//conditions:default": "cp -L $EXT_BUILD_ROOT/external/com_github_c_ares_c_ares/src/lib/ares_dns.h $INSTALLDIR/include/ares_dns.h", |
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.
Why is this now needed in non-Windows?
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.
There was a change in directory structure in c-ares
(c-ares/c-ares@0bf721c). We're using macros from ares_dns.h
in dns_imp_test.cc
- this header file is no longer available after make install
, so I had to make a "hack" in order to make it visible for us.
Run into some concurrency (tsan and asan) problems in upgraded
I think I know where the problem is - I will update this PR after resolving this problem upstream. |
Interesting, let us know if you need any pointers on Envoy's DNS implementation. I just merged #13582, which makes the mentioned last_updated --> release_date rename, so you might want to merge master to pick that up. Thanks. |
Signed-off-by: Łukasz Marszał <lmarszal@gmail.com>
Signed-off-by: Łukasz Marszał <lmarszal@gmail.com>
/retest |
Retrying Azure Pipelines. |
@htuch It's all green. |
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.
@lmarszal wow, thanks for the upstream fix! 👍
/lgtm deps |
Thanks for fixing! We hit this problem when upgrading envoy from 1.14 -> 1.16. Will this change make its way into a release any time soon? |
@lizan @mattklein123 @PiotrSikora Is it possible to backport this to |
Discussed offline with @lizan . Since this has dependencies and hence an element of risk involved, backport for this is not recommended. |
Commit Message: dns: fix resolving STRICT_DNS cluster endpoint FQDN with trailing dot '.'
Additional Description: bump c-ares dependency to a version having c-ares/c-ares@ba59781 issue resolved
Risk Level: Low
Testing: Manual test - repro steps from #13587 now results in expected behaviour
Docs Changes: feature of adding trailing dot '.' to FQDN was never documented; not sure if applicable
Release Notes: N/A
Platform Specific Features: N/A
Fixes #13587