Sergey Edunov created GIRAPH-1099: ------------------------------------- Summary: Bypass all DNC calls in Giraph Key: GIRAPH-1099 URL: https://issues.apache.org/jira/browse/GIRAPH-1099 Project: Giraph Issue Type: Bug Reporter: Sergey Edunov Assignee: Sergey Edunov
After GIRAPH-1034 we have reduced the number of DNS lookups and reverse DNS lookups dramatically. However, we still see failures occasionally and it would be great to completely bypass DNS if PREFER_IP_ADDRESSES is set. Currently I'm aware of two places that make DNS lookups: One in BspService: this.hostname = conf.getLocalHostname(); Another one is probably related: java.net.UnknownHostException: ***.com: unknown error at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method) at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928) at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323) at java.net.InetAddress.getAllByName0(InetAddress.java:1276) at java.net.InetAddress.getAllByName(InetAddress.java:1192) at java.net.InetAddress.getAllByName(InetAddress.java:1126) at org.apache.zookeeper.client.StaticHostProvider.<init>(StaticHostProvider.java:60) at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:445) at org.apache.zookeeper.ZooKeeper.<init>(ZooKeeper.java:380) at org.apache.giraph.zk.ZooKeeperExt.<init>(ZooKeeperExt.java:114) at org.apache.giraph.bsp.BspService.<init>(BspService.java:281) -- This message was sent by Atlassian JIRA (v6.3.4#6332)