Alexey Serbin has uploaded this change for review. ( 
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)
---
M src/kudu/util/net/net_util.cc
1 file changed, 1 insertion(+), 0 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/kudu refs/changes/15/23215/1
--
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: newchange
Gerrit-Change-Id: Ibca0a3c1f7ad03a6f847057c38c00b42275dec8b
Gerrit-Change-Number: 23215
Gerrit-PatchSet: 1
Gerrit-Owner: Alexey Serbin <[email protected]>

Reply via email to