guoweiM commented on a change in pull request #10152: [FLINK-14466][runtime] 
Let YarnJobClusterEntrypoint use user code class loader
URL: https://github.com/apache/flink/pull/10152#discussion_r346333099
 
 

 ##########
 File path: 
flink-yarn/src/test/java/org/apache/flink/yarn/YarnFileStageTest.java
 ##########
 @@ -126,7 +130,18 @@ public void testCopyFromLocalRecursiveWithoutScheme() 
throws Exception {
                final FileSystem targetFileSystem = 
hdfsRootPath.getFileSystem(hadoopConfig);
                final Path targetDir = targetFileSystem.getWorkingDirectory();
 
-               testCopyFromLocalRecursive(targetFileSystem, targetDir, 
tempFolder, false);
+               testCopyFromLocalRecursive(targetFileSystem, targetDir, 
LOCAL_RESOURCE_DIRECTORY, tempFolder, false);
+       }
+
+       /**
+        * Verifies that a single file is properly copied.
+        */
+       @Test
+       public void testCopyAFileFromLocal() throws IOException, 
URISyntaxException, InterruptedException {
 
 Review comment:
   The `uploadAndRegisterFiles` support to upload both a directory and a file.
   I add this test for verifying uploading a file to the `usrlib` directory 
correctly. This is a different code path with uploading files in a directory.
   

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to