aasha commented on a change in pull request #1461:
URL: https://github.com/apache/hive/pull/1461#discussion_r482784430



##########
File path: ql/src/java/org/apache/hadoop/hive/ql/parse/repl/CopyUtils.java
##########
@@ -58,32 +57,33 @@
   private final HiveConf hiveConf;
   private final long maxCopyFileSize;
   private final long maxNumberOfFiles;
-  private final boolean hiveInTest;
+  private final boolean hiveInReplTest;
   private final String copyAsUser;
   private FileSystem destinationFs;
 
   public CopyUtils(String distCpDoAsUser, HiveConf hiveConf, FileSystem 
destinationFs) {
     this.hiveConf = hiveConf;
     maxNumberOfFiles = 
hiveConf.getLongVar(HiveConf.ConfVars.HIVE_EXEC_COPYFILE_MAXNUMFILES);
     maxCopyFileSize = 
hiveConf.getLongVar(HiveConf.ConfVars.HIVE_EXEC_COPYFILE_MAXSIZE);
-    hiveInTest = hiveConf.getBoolVar(HiveConf.ConfVars.HIVE_IN_TEST);
+    hiveInReplTest = hiveConf.getBoolVar(HiveConf.ConfVars.HIVE_IN_TEST_REPL);
     this.copyAsUser = distCpDoAsUser;
     this.destinationFs = destinationFs;
   }
 
   // Used by replication, copy files from source to destination. It is 
possible source file is
   // changed/removed during copy, so double check the checksum after copy,
   // if not match, copy again from cm
-  public void copyAndVerify(Path destRoot, List<ReplChangeManager.FileInfo> 
srcFiles, Path origSrcPtah,
+  public void copyAndVerify(Path destRoot, List<ReplChangeManager.FileInfo> 
srcFiles, Path origSrcPath,
                             boolean overwrite)
           throws IOException, LoginException, HiveFatalException {
     UserGroupInformation proxyUser = getProxyUser();
-    FileSystem sourceFs = origSrcPtah.getFileSystem(hiveConf);
+    FileSystem sourceFs = CollectionUtils.isEmpty(srcFiles)

Review comment:
       derive sourceFs from srcFiles always




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



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

Reply via email to