NamenodeFsck and JspHelper duplicate DFSInputStream#copyBlock and bestNode --------------------------------------------------------------------------
Key: HDFS-3015 URL: https://issues.apache.org/jira/browse/HDFS-3015 Project: Hadoop HDFS Issue Type: Improvement Reporter: Eli Collins Priority: Minor Both NamenodeFsck and JspHelper duplicate DFSInputStream#copyBlock and bestNode. There should be one shared implementation. {code} /* * XXX (ab) Bulk of this method is copied verbatim from {@link DFSClient}, which is * bad. Both places should be refactored to provide a method to copy blocks * around. */ {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira