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

Contributed by: Mehakmeet Singh
This commit is contained in:
Mehakmeet Singh 2023-02-22 14:31:46 +05:30 committed by GitHub
parent e47ff5f3c0
commit a3b0135ea6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -652,7 +652,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 * `distcp.update.modification.time` would only be used if either of the two
stores don't have checksum validation resulting in incompatible checksum 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 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 To turn off the modification time check, set this in your core-site.xml
```xml ```xml

View File

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