You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Tsz Wo (Nicholas), SZE (JIRA)" <ji...@apache.org> on 2011/03/26 00:53:05 UTC
[jira] [Commented] (HDFS-1789) Refactor frequently used codes from
DFSOutputStream, BlockReceiver and DataXceiver
[ https://issues.apache.org/jira/browse/HDFS-1789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011506#comment-13011506 ]
Tsz Wo (Nicholas), SZE commented on HDFS-1789:
----------------------------------------------
The patch also fixes some misleading comments/variable names. E.g.
- Case 1
{code}
- private int numTargets; // number of downstream datanodes including myself
{code}
{{numTargets}} actually excludes the current datanode
- Case 2
{code}
- long lastByteInBlock;
...
+ final long lastByteInPacket;
{code}
> Refactor frequently used codes from DFSOutputStream, BlockReceiver and DataXceiver
> ----------------------------------------------------------------------------------
>
> Key: HDFS-1789
> URL: https://issues.apache.org/jira/browse/HDFS-1789
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: data-node, hdfs client
> Reporter: Tsz Wo (Nicholas), SZE
> Assignee: Tsz Wo (Nicholas), SZE
> Priority: Minor
> Attachments: h1789_20110325.patch
>
>
> Below are frequently used codes
> - Check block tokens in {{DataXceiver}}
> - Log/error messages in {{BlockReceiver}}
> In addition, I will refactor {{DFSOutputStream}} for testing)
> - create socket for pipeline
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira