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

Suresh Srinivas commented on HDFS-4956:
---------------------------------------

bq. yes, It seems only fix in DistributedFileSystem and DFSClient, because 
FSNamesystem has been considered it.
I am not sure what you mean here. Assuming what you mean is, DFSClient and 
DistributedFileSystem does not handle it and FSNamesystem handles it, the right 
way to do this is DistributedFileSystem/DFSClient should call append or create 
based on the flags passed to them. Currently FSNamesystem has code that makes 
it look like it handles it. However there are some differences between append 
method and create. For example, create does not check if append feature is 
supported. It also cannot return LocatedBlock with last incomplete block. The 
FSNamesystem implementation is incorrect and incomplete.
                
> DistributedFileSystem does not handle CreateFlag.APPEND in create call
> ----------------------------------------------------------------------
>
>                 Key: HDFS-4956
>                 URL: https://issues.apache.org/jira/browse/HDFS-4956
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>            Reporter: Suresh Srinivas
>
> Currently DistributedFileSystem does not handle CreateFlag.APPEND in the 
> implementation of FileSystem#create() method. It only support OVERWRITE & 
> CREATE or just CREATE.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to