Details
-
Improvement
-
Status: Patch Available
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
getFileInfo in hdfs.c calls FileSystem#exists first, then calls FileSystem#getFileStatus.
FileSystem#exists also call FileSystem#getFileStatus, just as follows:
public boolean exists(Path f) throws IOException { try { return getFileStatus(f) != null; } catch (FileNotFoundException e) { return false; } }
and finally this leads to call NameNodeRpcServer#getFileInfo twice.
Actually we can implement by calling once.
Attachments
Attachments
Issue Links
- is related to
-
HDFS-14047 [libhdfs++] Fix hdfsGetLastExceptionRootCause bug in test_libhdfs_threaded.c
- Resolved