[
https://issues.apache.org/jira/browse/HADOOP-5045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665665#action_12665665
]
Doug Cutting commented on HADOOP-5045:
--------------------------------------
The motivation for deprecating such Path-based methods was that, in many cases
other file operations were made concerning the same path, and namenode load
could be minimized if listStatus() or getStatus() were used. So we should not
blindly replace all calls with some boilerplate, but rather examine each. For
example, if the directory is itself from a directory listing, then a FileStatus
could already be available. If we find that there are many calls to
isDirectory() that really stand alone, where a path is directly provided by
user code, then we could consider de-deprecating this method, and instead
adding a comment cautioning developers to try to use listStatus() or
getStatus() instead to minimize namenode load.
> Remove deprecated FileSystem.isDirectory()
> ------------------------------------------
>
> Key: HADOOP-5045
> URL: https://issues.apache.org/jira/browse/HADOOP-5045
> Project: Hadoop Core
> Issue Type: Sub-task
> Components: fs
> Reporter: Tsz Wo (Nicholas), SZE
> Assignee: Suresh Srinivas
>
> We should remove FileSystem.isDirectory().
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.