Details
Description
Since FileSystem#open throws a FileNotFoundException when the file to be read does not exist, there is no need to check if the file is a directory or not before open. In case of HDFS, this could reduce one getFileInfo RPC to NameNode.
Attachments
Attachments
Issue Links
- is related to
-
HDFS-1016 HDFS side change for HADOOP-6569
- Closed