[ https://issues.apache.org/jira/browse/HDFS-376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16124974#comment-16124974 ]
leib commented on HDFS-376: --------------------------- i don't think it's a additional rpc to nn but instead of dn.u can reference from DFSClient.DFSInputStream#openInfo(). but u if there are many files under the dir u wanted to list,that means this op will cost certain overhead to complete it. > FileSystem.listStatus should report the current length of a file if it has > been sync'd > -------------------------------------------------------------------------------------- > > Key: HDFS-376 > URL: https://issues.apache.org/jira/browse/HDFS-376 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Jim Kellerman > > If a writer calls sync(), it should be possible to get the current file size > via FileSystem.listStatus, rather than listStatus returning 0 for the file > size until the file lease times out or the file is closed. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org