Browse Source

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

Contributed by: Mehakmeet Singh
Mehakmeet Singh 2 năm trước cách đây
mục cha
commit
7a0903b743

+ 1 - 1
hadoop-tools/hadoop-distcp/src/site/markdown/DistCp.md.vm

@@ -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

+ 1 - 2
hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/contract/AbstractContractDistCpTest.java

@@ -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);