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

Ramkumar Vadali updated HDFS-1461:
----------------------------------

    Attachment: HDFS-1461.patch

This patch introduces a RAID-friendly constructor for {{BlockSender}}. This 
constructor does not need a {{DataNode}} object, and works with streams 
instead. The common code between the new and old constructors is refactored to 
a function {{initialize()}}

I ran the HDFS unit tests and I did not see any new failure from trunk.

> Refactor hdfs.server.datanode.BlockSender
> -----------------------------------------
>
>                 Key: HDFS-1461
>                 URL: https://issues.apache.org/jira/browse/HDFS-1461
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: data-node
>            Reporter: Ramkumar Vadali
>            Assignee: Ramkumar Vadali
>         Attachments: HDFS-1461.patch
>
>
> BlockSender provides the functionality to send a block to a data node. But 
> the current implementation requires the source of the block to be a data 
> node. The RAID contrib project needs the functionality of sending a block to 
> a data node, but cannot use hdfs.server.datanode.BlockSender because the 
> constructor requires a datanode object.
> MAPREDUCE-2132 provides the motivation for this.
> The purpose of this jira is to refactor hdfs.server.datanode.BlockSender to 
> have another constructor that does not need a DataNode object.

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