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

Zoltán Borók-Nagy edited comment on IMPALA-9069 at 10/21/19 1:29 PM:
---------------------------------------------------------------------

Thanks for you comment [~pvary]

Based on the code Hive doesn't clean the records from the 'hive_locks' table. 
The method comment says
{noformat}
HIVE_LOCKS is (presumably) expected to be removed by 
AcidHouseKeeperServices{noformat}
Unfortunately in my environment AcidHouseKeeperServices doesn't work for some 
reason.


was (Author: boroknagyz):
Thanks for you comment [~pvary]

Based on the code Hive doesn't clean the records from the 'hive_locks'. The 
method comment says
{noformat}
HIVE_LOCKS is (presumably) expected to be removed by 
AcidHouseKeeperServices{noformat}
Unfortunately in my environment AcidHouseKeeperServices doesn't work for some 
reason.

> Impala should acquire an ACID lock when dropping a database
> -----------------------------------------------------------
>
>                 Key: IMPALA-9069
>                 URL: https://issues.apache.org/jira/browse/IMPALA-9069
>             Project: IMPALA
>          Issue Type: Bug
>            Reporter: Zoltán Borók-Nagy
>            Assignee: Zoltán Borók-Nagy
>            Priority: Major
>              Labels: impala-acid
>
> Dropping a table takes an exclusive lock on the table, hence it cannot be 
> removed while other queries are working on it.
> However, dropping a database doesn't take any locks, so it just starts 
> removing table data even if there are locks on the table by other clients.
> Moreover, the Hive Metastore doesn't delete the locks that refer to dropped 
> entities and when the database and tables are re-created those locks will be 
> still around (because the locks refer to the databases and tables via their 
> names).
> Impala should acquire an exclusive lock on the database during DROP.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to