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

Bharat Viswanadham commented on HDDS-1134:
------------------------------------------

Hi [~msingh]
I see this is being handled in OzoneManager, if the length passed is zero, we 
allocate at least one block.

Code link. 
[#codelink|https://github.com/apache/hadoop-ozone/blob/master/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeyCreateRequest.java#L104]


> OzoneFileSystem#create should allocate alteast one block for future writes.
> ---------------------------------------------------------------------------
>
>                 Key: HDDS-1134
>                 URL: https://issues.apache.org/jira/browse/HDDS-1134
>             Project: Hadoop Distributed Data Store
>          Issue Type: Bug
>          Components: Ozone Manager
>    Affects Versions: 0.4.0
>            Reporter: Mukul Kumar Singh
>            Assignee: Mukul Kumar Singh
>            Priority: Major
>              Labels: TriagePending
>             Fix For: 0.6.0
>
>         Attachments: HDDS-1134.001.patch
>
>
> While opening a new key, OM should at least allocate one block for the key, 
> this should be done in case the client is not sure about the number of block. 
> However for users of OzoneFS, if the key is being created for a directory, 
> then no blocks should be allocated.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: ozone-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: ozone-issues-h...@hadoop.apache.org

Reply via email to