Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.3.1
Description
the params for compareFileLengthsAndChecksums in RetriableFileCopyCommand have no effect
current is
DistCpUtils.compareFileLengthsAndChecksums(source.getLen(), sourceFS, sourcePath, sourceChecksum, targetFS, targetPath, skipCrc, source.getLen());
public static void compareFileLengthsAndChecksums(long srcLen, FileSystem sourceFS, Path source, FileChecksum sourceChecksum, FileSystem targetFS, Path target, boolean skipCrc, long targetLen) throws IOException { if (srcLen != targetLen) { throw new IOException( DistCpConstants.LENGTH_MISMATCH_ERROR_MSG + source + " (" + srcLen + ") and target:" + target + " (" + targetLen + ")"); }
so, compare source.getLen() with source.getLen()...
It should be like below in history view
DistCpUtils.compareFileLengthsAndChecksums(source.getLen(), sourceFS, sourcePath, sourceChecksum, targetFS, targetPath, skipCrc, offset + bytesRead);
Attachments
Issue Links
- links to