hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Subroto Sanyal (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HADOOP-7623) S3FileSystem reports block-size as length of File if file length is less than a block
Date Mon, 19 Sep 2011 08:08:09 GMT

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

Subroto Sanyal updated HADOOP-7623:
-----------------------------------

    Attachment: HADOOP-7623.patch

Attaching the patch for issue with corresponding source code and test code modifications.

The change doesn't breaks compatibility. The exisiting files can be read in same manner.
The patch adds one more field in the *INode* - *blockSize*.
Same is serialized and de-serialized as required.

> S3FileSystem reports block-size as length of File if file length is less than a block
> -------------------------------------------------------------------------------------
>
>                 Key: HADOOP-7623
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7623
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs/s3
>    Affects Versions: 0.20.1, 0.20.203.0, 0.20.204.0, 0.21.0
>            Reporter: Subroto Sanyal
>              Labels: hadoop
>             Fix For: 0.24.0
>
>         Attachments: HADOOP-7623.patch
>
>
> in S3FileSystem create a File with Block size as 67108864.
> Write some data in file of size 2048 (less than 67108864)
> Assert the block size of the file. the block size reported will be 2048 rather than 67108864.
> This behavior is not inline with HDFS.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message