Marton Greber has submitted this change and it was merged. ( http://gerrit.cloudera.org:8080/23215 )
Change subject: [net] use AF_INET hint for GetFQDN() ...................................................................... [net] use AF_INET hint for GetFQDN() I noticed that on nodes with not properly configured IPv6 DNS resolver, GetFQDN() would take quite a long time (~5 seconds) even if it eventually returns the name. This patch addresses the issue, adding the AF_INET hint for 'ai_family' when invoking getaddrinfo(). Doing so is in sync with the set of hints provided for the invocation of getaddrinfo() in the context of HostPort::ResolveAddresses(). Change-Id: Ibca0a3c1f7ad03a6f847057c38c00b42275dec8b Reviewed-on: http://gerrit.cloudera.org:8080/23213 Tested-by: Alexey Serbin <[email protected]> Reviewed-by: Gabriella Lotz <[email protected]> Reviewed-by: Ashwani Raina <[email protected]> Reviewed-by: Abhishek Chennaka <[email protected]> (cherry picked from commit 9c703fa5bd476c17441361de68a518847d23e001) Reviewed-on: http://gerrit.cloudera.org:8080/23215 Reviewed-by: Marton Greber <[email protected]> Tested-by: Marton Greber <[email protected]> --- M src/kudu/util/net/net_util.cc 1 file changed, 1 insertion(+), 0 deletions(-) Approvals: Gabriella Lotz: Looks good to me, but someone else must approve Marton Greber: Looks good to me, approved; Verified -- To view, visit http://gerrit.cloudera.org:8080/23215 To unsubscribe, visit http://gerrit.cloudera.org:8080/settings Gerrit-Project: kudu Gerrit-Branch: branch-1.18.x Gerrit-MessageType: merged Gerrit-Change-Id: Ibca0a3c1f7ad03a6f847057c38c00b42275dec8b Gerrit-Change-Number: 23215 Gerrit-PatchSet: 2 Gerrit-Owner: Alexey Serbin <[email protected]> Gerrit-Reviewer: Abhishek Chennaka <[email protected]> Gerrit-Reviewer: Ashwani Raina <[email protected]> Gerrit-Reviewer: Gabriella Lotz <[email protected]> Gerrit-Reviewer: Kudu Jenkins (120) Gerrit-Reviewer: Marton Greber <[email protected]>
