[
https://issues.apache.org/jira/browse/HDFS-1789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13012278#comment-13012278
]
Jitendra Nath Pandey commented on HDFS-1789:
--------------------------------------------
1. Method PacketResponder#isLastDatanode()
If downstreams is null for the last datanode it will return false.
2. In PacketResponder#run
> if (downstreams != null && downstreams.length > 0
It can be replaced by if (!isLastDatanode())
> 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, h1789_20110325b.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