hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-6702) DFSClient should create blocks using StorageType
Date Tue, 22 Jul 2014 03:20:39 GMT

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

Arpit Agarwal commented on HDFS-6702:

Hi [~szetszwo],

#for {{writeBlock}}, why do we pass both {{targetStorageTypes[0]}} and {{targetStorageTypes}}?
Wouldn't it be sufficient to just pass targetStorageTypes? 
# DatanodeProtocol.proto: I got confused about {{BlockCommandProto}}. It has {{repeated StorageTypesProto
targetStorageTypes}} which itself has repeated {{StorageTypeProto}} as member. Can we just
make this {{repeated StorageTypeProto targetStorageTypes}} and remove the {{StorageTypesProto}}

> DFSClient should create blocks using StorageType 
> -------------------------------------------------
>                 Key: HDFS-6702
>                 URL: https://issues.apache.org/jira/browse/HDFS-6702
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: datanode, hdfs-client
>            Reporter: Tsz Wo Nicholas Sze
>            Assignee: Tsz Wo Nicholas Sze
>         Attachments: h6702_20140719.patch, h6702_20140721.patch, h6702_20140721b.patch
> When DFSClient asks NN for a new block (via addBlock), NN returns a LocatedBlock with
storage type information.  However, DFSClient does not use StorageType to create blocks with
DN.  As a result, the block replicas could possibly be created with a different storage type.

This message was sent by Atlassian JIRA

View raw message