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

Lefty Leverenz commented on HIVE-7241:
--------------------------------------

The wiki's Locking doc doesn't include "alter table T1 partition P1 rename to 
partition P2" so it ought to be added to the table of Hive commands and locks 
acquired in the Use Cases section:

* [Hive Concurrency Model -- Use Cases | 
https://cwiki.apache.org/confluence/display/Hive/Locking?from=_YKhAQ#Locking-UseCases]

> Wrong lock acquired for alter table rename partition
> ----------------------------------------------------
>
>                 Key: HIVE-7241
>                 URL: https://issues.apache.org/jira/browse/HIVE-7241
>             Project: Hive
>          Issue Type: Bug
>          Components: Locking
>    Affects Versions: 0.13.0
>            Reporter: Alan Gates
>            Assignee: Alan Gates
>              Labels: TODOC14
>             Fix For: 0.14.0
>
>         Attachments: HIVE-7241.patch, HIVE-7241.patch
>
>
> Doing an "alter table foo partition (bar='x') rename to partition (bar='y')" 
> acquires a read lock on table foo.  It should instead acquire an exclusive 
> lock on partition bar=x.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to