[ 
https://issues.apache.org/jira/browse/HADOOP-999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12516460
 ] 

Hairong Kuang commented on HADOOP-999:
--------------------------------------

1. I'd prefer that this patch does not change the use of UT8 to String. The 
change is not related to this issue. I think it is better to do it in a 
separeate jira.
2. This patch makes the namenode to create the first block when an application 
calls create. A side effect is that a block needs to be created for a zero 
length file. Also with this change, all block allocation code pieces are not in 
one place as before. 

Does it make more sense that we change the semantics of file creation at the 
server side? It seems to me that it is cleaner if startFile only creates a 
pendingCreate but does not create a block.

> DFS Client should create file when the user creates the file
> ------------------------------------------------------------
>
>                 Key: HADOOP-999
>                 URL: https://issues.apache.org/jira/browse/HADOOP-999
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.11.0
>            Reporter: Owen O'Malley
>            Assignee: Tsz Wo (Nicholas), SZE
>             Fix For: 0.15.0
>
>         Attachments: 999_20070727c.patch
>
>
> Currently, the DFS client code does not create the file on the namenode until 
> the first block is flushed. This leads to difficult to diagnose error 
> conditions when there is a conflicting file creation.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to