You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Zheng Shao (JIRA)" <ji...@apache.org> on 2010/01/07 20:16:54 UTC

[jira] Created: (HDFS-878) FileStatus should have a field "isUnderConstruction"

FileStatus should have a field "isUnderConstruction"
----------------------------------------------------

                 Key: HDFS-878
                 URL: https://issues.apache.org/jira/browse/HDFS-878
             Project: Hadoop HDFS
          Issue Type: New Feature
            Reporter: Zheng Shao
            Assignee: Zheng Shao


Currently DFSClient has no way to know whether a file is under construction or not, unless we open the file and get locatedBlocks (which is much more costly).
However, the namenode knows whether each INode is under construction or not.

We should expose that information from NameNode.getListing(), to DFSClient.listPaths(), to DistributedFileSystem.listStatus().


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