[ 
https://issues.apache.org/jira/browse/HIVE-16644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16026678#comment-16026678
 ] 

Sankar Hariappan edited comment on HIVE-16644 at 5/26/17 6:59 PM:
------------------------------------------------------------------

Added 01.patch with below changes.
- Added a metastore api cm_recycle to move files to CM path before trashing it.
- The destination directory is recycled in Hive.replaceFIles before trashing it.
- For insert overwrite case, oldPath and destf inputs to Hive.replaceFiles will 
be same and the trashing of the files in this directory happens in 
Hive.replaceFiles. So, no handling required in Hive.moveFile.

Request [~anishek] to review the patch!
cc [~thejas],[~sushanth]


was (Author: sankarh):
Added 01.patch with below changes.
- Added a metastore api cm_recycle to move files to CM path before trashing it.
- The destination directory is recycled in Hive.replaceFIles before trashing it.
- For insert overwrite case, oldPath and destf inputs to Hive.replaceFiles will 
be same and the trashing of the files in this directory happens in 
Hive.replaceFiles. So, no handling required in Hive.moveFile.

> Hook Change Manager to Insert Overwrite
> ---------------------------------------
>
>                 Key: HIVE-16644
>                 URL: https://issues.apache.org/jira/browse/HIVE-16644
>             Project: Hive
>          Issue Type: Sub-task
>          Components: repl
>    Affects Versions: 2.1.0
>            Reporter: Sankar Hariappan
>            Assignee: Sankar Hariappan
>              Labels: DR, replication
>         Attachments: HIVE-16644.01.patch
>
>
> For insert overwrite Hive.moveFile is called to replace contents of existing 
> partitions. This should trigger move of old files into $CMROOT.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to