hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Doug Cutting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-2470) Open and isDir should be removed from ClientProtocol
Date Tue, 29 Jan 2008 19:10:34 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-2470?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12563618#action_12563618

Doug Cutting commented on HADOOP-2470:

> I think you mean open and isDir can be replaced. 

FileSystem#isDirectory() is implemented in terms of FileSystem#getFileInfo(), so removing
the DistributedFileSystem implementation should work fine, no?

And, yes, open() is still called.  It's implementation on the NameNode is identical to getBlockLocations,
except for the update of a counter.  So, if that counter is not critical, open() could also
be removed.

> Open and isDir should be removed from ClientProtocol
> ----------------------------------------------------
>                 Key: HADOOP-2470
>                 URL: https://issues.apache.org/jira/browse/HADOOP-2470
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.15.1
>            Reporter: Hairong Kuang
> Methods open and isDir in ClientProtocol are no longer used. DFSClient uses getBlockLocations
and getFileInfo instead. So open and isDir should be removed from ClientProtocol.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message