Details
-
Improvement
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
0.15.0
-
None
-
None
-
Incompatible change, Reviewed
-
Deprecates exists() from ClientProtocol
Description
ClientProtocol can be simplified by removing two methods
public boolean exists(String src) throws IOException; public boolean isDir(String src) throws IOException;
This is a redundant api, which can be implemented in DFSClient as convenience methods using
public DFSFileInfo getFileInfo(String src) throws IOException;
Note that we already deprecated several Filesystem method and advised to use getFileStatus() instead.
Should we deprecate them in 0.16?
Attachments
Attachments
Issue Links
- duplicates
-
HADOOP-2470 Open and isDir should be removed from ClientProtocol
- Closed
- is related to
-
HADOOP-2566 need FileSystem#globStatus method
- Closed
- relates to
-
HADOOP-3160 remove exists() from ClientProtocol and NameNode
- Closed