Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
DistributedFileSystem.java:131
public FSDataInputStream open(Path f, int bufferSize) throws IOException { if (!exists(f)) { throw new FileNotFoundException(f.toString()); } return new DFSClient.DFSDataInputStream(dfs.open(getPath(f)), bufferSize); }
exists(f) adds extra namenode interaction that is not really required. Open is a critical DFS call.