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

Suresh Srinivas commented on HDFS-4849:
---------------------------------------

bq. No. Could you please try to run it. 
I ran the tests. The create call has overwrite flag turned on. So the last 
create succeeds, with the previous ones failing.

If you change the create call to:
{code}
              final FSDataOutputStream out = fs.create(path, false, 1024, 
(short)1, 1024);
{code}
It works as I explained earlier, except the exception thrown is 
AlreadyBeingCreatedException.
                
> Idempotent create and append operations.
> ----------------------------------------
>
>                 Key: HDFS-4849
>                 URL: https://issues.apache.org/jira/browse/HDFS-4849
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: namenode
>    Affects Versions: 2.0.4-alpha
>            Reporter: Konstantin Shvachko
>            Assignee: Konstantin Shvachko
>            Priority: Blocker
>         Attachments: idempotentCreate.patch, idempotentCreate.patch, 
> idempotentCreate.patch
>
>
> create, append and delete operations can be made idempotent. This will reduce 
> chances for a job or other app failures when NN fails over.

--
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