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

Konstantin Shvachko commented on HDFS-4849:
-------------------------------------------

> How does one guarantee the client name is unique?

I thought this was answered [in this 
comment|https://issues.apache.org/jira/browse/HDFS-4849?focusedCommentId=13670136&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13670136].
To summarize: current HDFS takes client names from applications. MR guarantees 
the uniqueness. The other applications should too.

> This could also happen for multithreaded clients.

I elaborated on multithreaded clients in the same comment as Todd raised this 
question. See second part.

> How does one know this audit event is for a retried call vs possible bug that 
> might have logged an audit event twice?

Well if there is a bug we should fix it.

> This jira started out to be much larger in scope.

I proposed to reuse the jira for create and append [in this 
comment|https://issues.apache.org/jira/browse/HDFS-4849?focusedCommentId=13671661&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13671661].
 Created HDFS-4872 for the delete work with this issue linked to it.
I don't mind reorganizing jiras as you wish.
                
> 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
>
>
> 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