You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "ransom.hezhiqiang (JIRA)" <ji...@apache.org> on 2012/06/08 08:51:23 UTC

[jira] [Assigned] (HIVE-3101) dropTable will all ways excute hook.rollbackDropTable whether drop table success or faild.

     [ https://issues.apache.org/jira/browse/HIVE-3101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ransom.hezhiqiang reassigned HIVE-3101:
---------------------------------------

    Assignee: ransom.hezhiqiang
    
> dropTable will all ways excute hook.rollbackDropTable whether drop table success or faild.
> ------------------------------------------------------------------------------------------
>
>                 Key: HIVE-3101
>                 URL: https://issues.apache.org/jira/browse/HIVE-3101
>             Project: Hive
>          Issue Type: Bug
>          Components: Metastore
>            Reporter: ransom.hezhiqiang
>            Assignee: ransom.hezhiqiang
>         Attachments: HIVE-3101.1.patch
>
>
> see  the codes:
>  boolean success = false;
>     try {
>       client.drop_table(dbname, name, deleteData);
>       if (hook != null) {
>         hook.commitDropTable(tbl, deleteData);
>       }
>     } catch (NoSuchObjectException e) {
>       if (!ignoreUknownTab) {
>         throw e;
>       }
>     } finally {
>       if (!success && (hook != null)) {
>         hook.rollbackDropTable(tbl);
>       }
>     }
> success  will always false, whether  the drop was success or faild.
> so it's a bug. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira