Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2.0.3-alpha
-
Component/s: hdfs-client, namenode
-
Labels:None
-
Hadoop Flags:Reviewed
Description
As per discussion in HDFS-3960 and HDFS-2802, when clients that need strong consistency update the file length at the NameNode, a special sync/flush is required for getting the length of the being written files when snapshots are taken for these files. This jira implements this sync-with-updating-length by 1) calling ClientProtocol#fsync(), and 2) adding a new field to ClientProtocol#fsync() to indicate the length information.