[
https://issues.apache.org/jira/browse/HIVE-21471?focusedWorklogId=217555&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-217555
]
ASF GitHub Bot logged work on HIVE-21471:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 23/Mar/19 04:01
Start Date: 23/Mar/19 04:01
Worklog Time Spent: 10m
Work Description: sankarh commented on pull request #578: HIVE-21471:
Replicating conversion of managed to external table leaks HDFS files at target.
URL: https://github.com/apache/hive/pull/578#discussion_r268381204
##########
File path:
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/CreateTableOperation.java
##########
@@ -108,6 +116,12 @@ private void createTableReplaceMode(Table tbl) throws
HiveException {
}
}
+ // If table's data location is moved, then set the corresponding flag in
environment context to
Review comment:
Nope. The scenario is location is changed at target not at source. At source
only the table type is changed from managed to external not location. I will
update the comment to say that in repl flow.
----------------------------------------------------------------
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: 217555)
Time Spent: 2h 40m (was: 2.5h)
> Replicating conversion of managed to external table leaks HDFS files at
> target.
> -------------------------------------------------------------------------------
>
> Key: HIVE-21471
> URL: https://issues.apache.org/jira/browse/HIVE-21471
> Project: Hive
> Issue Type: Bug
> Components: repl
> Affects Versions: 4.0.0
> Reporter: Sankar Hariappan
> Assignee: Sankar Hariappan
> Priority: Major
> Labels: DR, pull-request-available, replication
> Attachments: HIVE-21471.01.patch, HIVE-21471.02.patch
>
> Time Spent: 2h 40m
> Remaining Estimate: 0h
>
> While replicating the ALTER event to convert managed table to external table,
> the data location for the table is changed under input base directory for
> external tables replication. But, the old location remains there and would be
> leaked for ever.
> ALTER TABLE T1 SET TBLPROPERTIES('EXTERNAL'='true');
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)