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

Aihua Xu updated HIVE-20345:
----------------------------
    Status: Patch Available  (was: Open)

Patch-1: we just need to move startIndex = endIndex; out of the if statement.

> Drop database may hang if the tables get deleted from a different call
> ----------------------------------------------------------------------
>
>                 Key: HIVE-20345
>                 URL: https://issues.apache.org/jira/browse/HIVE-20345
>             Project: Hive
>          Issue Type: Bug
>          Components: Standalone Metastore
>    Affects Versions: 2.0.0, 1.3.0
>            Reporter: Aihua Xu
>            Assignee: Aihua Xu
>            Priority: Major
>         Attachments: HIVE-20345.1.patch
>
>
> In HiveMetaStore.java drop_database_core function,  HIVE-11258 updates the 
> startIndex from endIndex incorrectly inside {{if (tables != null && 
> !tables.isEmpty())}} statement. If the tables get deleted before 
> getTableObjectsByName() call, then returned table list is empty and 
> startIndex won't get updated.



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

Reply via email to