hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "dhruba borthakur (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HDFS-879) FileStatus should have the visible length of the file
Date Mon, 11 Jan 2010 20:21:54 GMT

    [ https://issues.apache.org/jira/browse/HDFS-879?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12798843#action_12798843

dhruba borthakur commented on HDFS-879:

2A. I liked this better than 2B. Add a new filed called underConstruction to DfsFileStatus
(not FileStatus).

2B. I guess Zheng is actually meaning that the datanode can send blockReceived messages even
before the block is complete. This message will indicate that ther block is not yet completed,
but will carry the most upto-date length of the block.

> FileStatus should have the visible length of the file
> -----------------------------------------------------
>                 Key: HDFS-879
>                 URL: https://issues.apache.org/jira/browse/HDFS-879
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Zheng Shao
>            Assignee: Zheng Shao
> Currently, {{FileStatus}} returned by {{DistributedFileSystem.listStatus()}} (which goes
through {{DFSClient.listPath()}} then {{NameNode.getListing()}}) does not have the latest
file length, if the file is still open for write.
> We should make changes in {{DFSClient.listPath()}} to override the length of the file,
if the file is under construction.
> This depends on adding a {{isUnderConstruction}} field in {{FileStatus}}.

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

View raw message