[
https://issues.apache.org/jira/browse/HIVE-7242?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14043185#comment-14043185
]
Lefty Leverenz commented on HIVE-7242:
--------------------------------------
The wiki already documents the correct behavior:
{quote}
*Hive Command* alter table T1 drop partition P1
*Locks Acquired* S on T1, X on T1.P1
{quote}
Should this bug fix & version be noted in the wiki?
* [Hive Concurrency Model -- Use Cases (see table) |
https://cwiki.apache.org/confluence/display/Hive/Locking?from=_YKhAQ#Locking-UseCases]
> alter table drop partition is acquiring the wrong type of lock
> --------------------------------------------------------------
>
> Key: HIVE-7242
> URL: https://issues.apache.org/jira/browse/HIVE-7242
> Project: Hive
> Issue Type: Bug
> Components: Locking
> Affects Versions: 0.13.0
> Reporter: Alan Gates
> Assignee: Alan Gates
> Fix For: 0.14.0
>
> Attachments: HIVE-7242.patch
>
>
> Doing an "alter table foo drop partition ('bar=x')" acquired a shared-write
> lock on partition bar=x. It should be acquiring an exclusive lock in that
> case.
--
This message was sent by Atlassian JIRA
(v6.2#6252)