Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
If DFSClient runs on a machine that can't resolve network path, DNSToSwitchMapping will return DEFAULT_RACK. In addition, if somehow dnsToSwitchMapping.resolve returns null, that will cause exception when it tries to create clientNode. In either case, there is no need to create clientNode and we should treat its network distance with any datanode as Integer.MAX_VALUE.
clientNode = new NodeBase(clientHostName, dnsToSwitchMapping.resolve(nodes).get(0));
Attachments
Attachments
Issue Links
- relates to
-
HDFS-9579 Provide bytes-read-by-network-distance metrics at FileSystem.Statistics level
- Resolved