hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kai Sasaki (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8494) Remove hard-coded chunk size in favor of ECZone
Date Mon, 01 Jun 2015 05:16:17 GMT

    [ https://issues.apache.org/jira/browse/HDFS-8494?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14566944#comment-14566944

Kai Sasaki commented on HDFS-8494:

{{BlockInfoStriped#spaceConsumed}} looks need BLOCK_STRIPED_CELL_SIZE here. Originally, does
it need to it in order to calculate consumed space?

  public long spaceConsumed() {
    // In case striped blocks, total usage by this striped blocks should
    // be the total of data blocks and parity blocks because
    // `getNumBytes` is the total of actual data block size.
    return StripedBlockUtil.spaceConsumedByStripedBlock(getNumBytes(),
        this.schema.getNumDataUnits(), this.schema.getNumParityUnits(),

> Remove hard-coded chunk size in favor of ECZone
> -----------------------------------------------
>                 Key: HDFS-8494
>                 URL: https://issues.apache.org/jira/browse/HDFS-8494
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>    Affects Versions: HDFS-7285
>            Reporter: Kai Sasaki
>            Assignee: Kai Sasaki
>             Fix For: HDFS-7285
> It is necessary to remove hard-coded values inside NameNode configured in {{HdfsConstants}}.
In this JIRA, we can remove {{chunkSize}} gracefully in favor of HDFS-8375.
> Because {{cellSize}} is now originally stored only in {{ErasureCodingZone}}, {{BlockInfoStriped}}
can receive {{ErasureCodingZone}} instead of {{ECSchema}} when its initialization.

This message was sent by Atlassian JIRA

View raw message