steveloughran commented on a change in pull request #1794: HADOOP-15887: Add an 
option to avoid writing data locally in Distcp
URL: https://github.com/apache/hadoop/pull/1794#discussion_r363378426
 
 

 ##########
 File path: 
hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/TestIntegration.java
 ##########
 @@ -511,7 +518,27 @@ public void testCleanup() {
       Assert.fail("testCleanup failed " + e.getMessage());
     }
   }
-  
+
+  @Test(timeout=100000)
+  public void testNoLocalWrite() {
+    try {
+      addEntries(listFile, "singlefile1/file1");
+      createFiles("singlefile1/file1", "target");
+
+      Configuration conf = new Configuration(getConf());
+      conf.set("fs.file.impl", MockFileSystem.class.getName());
+      conf.setBoolean("fs.file.impl.disable.cache", true);
+      runTest(listFile, target, false, false, false, false, true, conf);
+
+      checkResult(target, 1);
+    } catch (IOException e) {
 
 Review comment:
   remove the catch, just have the test method throw IOException

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to