HADOOP-18633. fix test AbstractContractDistCpTest#testDistCpUpdateCheckFileSkip (#5422)
Contributed by: Mehakmeet Singh
This commit is contained in:
parent
e47ff5f3c0
commit
a3b0135ea6
@ -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
|
||||
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
|
||||
|
@ -899,8 +899,7 @@ public void testDistCpUpdateCheckFileSkip() throws Exception {
|
||||
// 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);
|
||||
|
Loading…
Reference in New Issue
Block a user