[ 
https://issues.apache.org/jira/browse/HADOOP-1656?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

dhruba borthakur updated HADOOP-1656:
-------------------------------------

    Attachment: blockSize3.patch

A question came up during the review that the blocksize is really a heuristic; 
the file system could still have blocks in the file that are different from the 
specified blocksize. This means that the specified block size is really the 
"preferred" block size.

HDFS now implement getPreferredBlockSize(). This preferred block size is 
persisted in the file system image. The FileSystem API has not changed.

> HDFS does not record the blocksize for a file
> ---------------------------------------------
>
>                 Key: HADOOP-1656
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1656
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.13.0
>            Reporter: Sameer Paranjpye
>            Assignee: dhruba borthakur
>             Fix For: 0.15.0
>
>         Attachments: blockSize3.patch
>
>
> The blocksize that a file is created with is not recorded by the Namenode. It 
> is used only by the client when it writes the file. Invoking 'getBlockSize' 
> merely returns the size of the first block. The Namenode should record the 
> blocksize.

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