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

Alan Gates commented on HIVE-7281:
----------------------------------

Ideally we could lock only partitions that are potentially being written to by 
the dynamic partitioning write.  But this would require significant changes in 
the TxnHandler to handle the notion of locking partitions matching a pattern.  
Rather than make those changes, for now it is easier to lock the table.

> DbTxnManager acquiring wrong level of lock for dynamic partitioning
> -------------------------------------------------------------------
>
>                 Key: HIVE-7281
>                 URL: https://issues.apache.org/jira/browse/HIVE-7281
>             Project: Hive
>          Issue Type: Bug
>          Components: Locking, Transactions
>            Reporter: Alan Gates
>            Assignee: Alan Gates
>
> Currently DbTxnManager.acquireLocks() locks the DUMMY_PARTITION for dynamic 
> partitioning.  But this is not adequate.  This will not prevent drop 
> operations on partitions being written to.  The lock should be at the table 
> level.



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

Reply via email to