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

ASF GitHub Bot commented on HIVE-18478:
---------------------------------------

GitHub user maheshk114 opened a pull request:

    https://github.com/apache/hive/pull/298

    HIVE-18478: Avoiding creation of CM recycle file in case of temp table

    In case of drop table, truncate table, load table etc,  the table info is 
deleted which can cause issues during replication. To solve this, the old files 
are stored in the CM directory to be used by replication later. But for 
temporary tables, replication is not done and thus these files creation is not 
required. So extra checks are added to avoid creation of recycle files in case 
of temp tables.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/maheshk114/hive HIVE-18478

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/hive/pull/298.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #298
    
----
commit 2a5dd87618c1a323a230eafe1906a7ad8b9e7af7
Author: Mahesh Kumar Behera <mbehera@...>
Date:   2018-01-25T16:06:27Z

    HIVE-18478: Avoiding creation of CM recycle file in case of temp table

----


> Drop of temp table creating recycle files at CM path
> ----------------------------------------------------
>
>                 Key: HIVE-18478
>                 URL: https://issues.apache.org/jira/browse/HIVE-18478
>             Project: Hive
>          Issue Type: Sub-task
>          Components: Hive, HiveServer2
>            Reporter: mahesh kumar behera
>            Assignee: mahesh kumar behera
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 3.0.0
>
>
> Drop TEMP table operation invokes deleteDir which moves the file to $CMROOT 
> which is not needed as temp tables need not be replicated



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to