[
https://issues.apache.org/jira/browse/HADOOP-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652596#action_12652596
]
Tsz Wo (Nicholas), SZE commented on HADOOP-4751:
------------------------------------------------
This is a good thing to do although it needs an additional RPC to the namenode
in some cases.
> FileSystem.listStatus should report the current length of a file if it has
> been sync'd
> --------------------------------------------------------------------------------------
>
> Key: HADOOP-4751
> URL: https://issues.apache.org/jira/browse/HADOOP-4751
> Project: Hadoop Core
> Issue Type: Improvement
> Components: dfs
> Affects Versions: 0.19.0
> Reporter: Jim Kellerman
> Fix For: 0.19.1, 0.20.0
>
>
> 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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.