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] [Commented] (HADOOP-7623) S3FileSystem reports block-size as length of File if file length is less than a block
Date Mon, 12 Sep 2011 12:21:09 GMT

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

Subroto Sanyal commented on HADOOP-7623:
----------------------------------------

Proposed solution would be serialize the *blockSize* with *INode* in S3.
On the same lines while reading we can de-serialize accordingly.

But, this solution leads to backward compatibility problem.

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