You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Kai Xie (JIRA)" <ji...@apache.org> on 2019/03/03 07:48:00 UTC

[jira] [Created] (HADOOP-16158) DistCp supports checksum validation when copy blocks in parallel

Kai Xie created HADOOP-16158:
--------------------------------

             Summary: DistCp supports checksum validation when copy blocks in parallel
                 Key: HADOOP-16158
                 URL: https://issues.apache.org/jira/browse/HADOOP-16158
             Project: Hadoop Common
          Issue Type: Improvement
          Components: tools/distcp
    Affects Versions: 2.9.2, 3.2.0
            Reporter: Kai Xie
            Assignee: Kai Xie


Copying blocks in parallel (enabled when blocks per chunk > 0) is a great DistCp improvement that can hugely speed up copying big files. 

But its checksum validation is skipped, e.g. in `RetriableFileCopyCommand.java`

 
{code:java}
if (!source.isSplit()) {
  compareCheckSums(sourceFS, source.getPath(), sourceChecksum,
      targetFS, targetPath);
}
{code}
and this could result in checksum/data mismatch without notifying developers/users (e.g. HADOOP-16049).

I'd like to provide a patch to add the checksum validation.

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org