HADOOP-18633. fix test AbstractContractDistCpTest#testDistCpUpdateCheckFileSkip (#5401)

Contributed by: Mehakmeet Singh
This commit is contained in:
Mehakmeet Singh 2023-02-16 10:09:06 +05:30 committed by GitHub
parent 723535b788
commit 7a0903b743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -653,7 +653,7 @@ checksums if the checksum algorithm between the two stores is different.
* `distcp.update.modification.time` would only be used if either of the two
stores don't have checksum validation resulting in incompatible checksum
comparison between the two. Even if the property is set to true, it won't
be used if their is valid checksum comparison between the two stores.
be used if there is valid checksum comparison between the two stores.
To turn off the modification time check, set this in your core-site.xml
```xml

View File

@ -899,8 +899,7 @@ public abstract class AbstractContractDistCpTest
// Creating a source file with certain dataset.
byte[] sourceBlock = dataset(10, 'a', 'z');
// Write the dataset and as well create the target path.
ContractTestUtils.createFile(localFS, dest, true, sourceBlock);
// Write the dataset.
ContractTestUtils
.writeDataset(remoteFS, source, sourceBlock, sourceBlock.length,
1024, true);