[
https://issues.apache.org/jira/browse/HIVE-24114?focusedWorklogId=478354&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-478354
]
ASF GitHub Bot logged work on HIVE-24114:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 03/Sep/20 08:00
Start Date: 03/Sep/20 08:00
Worklog Time Spent: 10m
Work Description: 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]
Issue Time Tracking
-------------------
Worklog Id: (was: 478354)
Time Spent: 20m (was: 10m)
> Repl Load is not working with both staging and data copy on target
> -------------------------------------------------------------------
>
> Key: HIVE-24114
> URL: https://issues.apache.org/jira/browse/HIVE-24114
> Project: Hive
> Issue Type: Task
> Reporter: Pravin Sinha
> Assignee: Pravin Sinha
> Priority: Major
> Labels: pull-request-available
> Attachments: HIVE-24114.01.patch
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)