[
https://issues.apache.org/jira/browse/HIVE-21446?focusedWorklogId=214577&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-214577
]
ASF GitHub Bot logged work on HIVE-21446:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 18/Mar/19 05:27
Start Date: 18/Mar/19 05:27
Worklog Time Spent: 10m
Work Description: sankarh commented on pull request #569: HIVE-21446 :
Hive Server going OOM during hive external table replications
URL: https://github.com/apache/hive/pull/569#discussion_r266297902
##########
File path: ql/src/java/org/apache/hadoop/hive/ql/parse/repl/CopyUtils.java
##########
@@ -136,7 +143,11 @@ private void doCopyRetry(FileSystem sourceFs,
List<ReplChangeManager.FileInfo> s
}
// looks like some network outrage, reset the file system object and
retry.
- FileSystem.closeAllForUGI(Utils.getUGI());
+ if (proxyUser == null) {
+ FileSystem.closeAllForUGI(Utils.getUGI());
+ } else {
+ FileSystem.closeAllForUGI(proxyUser);
+ }
sourceFs = pathList.get(0).getFileSystem(hiveConf);
destinationFs = destination.getFileSystem(hiveConf);
Review comment:
We need to propagate the destinationFs to caller as well as caller still
points to old file system object which is invalid. As caller uses this object
in a loop, it is necessary to propagate it back to caller.
----------------------------------------------------------------
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: 214577)
Time Spent: 50m (was: 40m)
> Hive Server going OOM during hive external table replications
> -------------------------------------------------------------
>
> Key: HIVE-21446
> URL: https://issues.apache.org/jira/browse/HIVE-21446
> Project: Hive
> Issue Type: Bug
> Components: repl
> Affects Versions: 4.0.0
> Reporter: mahesh kumar behera
> Assignee: mahesh kumar behera
> Priority: Major
> Labels: pull-request-available
> Fix For: 4.0.0
>
> Attachments: HIVE-21446.01.patch
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> The file system objects opened using proxy users are not closed.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)