aajisaka commented on a change in pull request #3519:
URL: https://github.com/apache/hadoop/pull/3519#discussion_r730659799
##########
File path:
hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/mapred/RetriableFileCopyCommand.java
##########
@@ -154,7 +154,7 @@ private long doCopy(CopyListingFileStatus source, Path
target,
if (!source.isSplit()) {
DistCpUtils.compareFileLengthsAndChecksums(source.getLen(), sourceFS,
sourcePath, sourceChecksum, targetFS,
- targetPath, skipCrc, source.getLen());
+ targetPath, skipCrc, bytesRead);
Review comment:
The test failures are related to the change. Probably we need to add
offset.
```suggestion
targetPath, skipCrc, offset + bytesRead);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]