hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eugene Koifman (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-10483) ACID: insert overwrite with self join deadlocks on itself with DbTxnManager
Date Sat, 25 Apr 2015 00:51:38 GMT

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

Eugene Koifman updated HIVE-10483:
----------------------------------
    Description: 
insert overwrite ta partition(part=xxxx) select xxx from tb join ta where part=xxxx

It seems like the Shared conflicts with the Exclusive lock for Insert Overwrite even though
both are part of the same txn.
More precisely insert overwrite requires X lock on partition and the read side needs an S
lock on the query.

A simpler case is
insert overwrite ta partition(part=xxxx) select * from ta

  was:
insert overwrite ta partition(part=xxxx) select xxx from tb join ta where part=xxxx

It seems like the Shared conflicts with the Exclusive lock for Insert Overwrite even though
both are part of the same txn.
More precisely insert overwrite requires X lock on partition and the read side needs an S
lock on the query.


> ACID: insert overwrite with self join deadlocks on itself with DbTxnManager
> ---------------------------------------------------------------------------
>
>                 Key: HIVE-10483
>                 URL: https://issues.apache.org/jira/browse/HIVE-10483
>             Project: Hive
>          Issue Type: Bug
>          Components: Query Planning, Query Processor, Transactions
>    Affects Versions: 1.0.0
>            Reporter: Eugene Koifman
>            Assignee: Eugene Koifman
>
> insert overwrite ta partition(part=xxxx) select xxx from tb join ta where part=xxxx
> It seems like the Shared conflicts with the Exclusive lock for Insert Overwrite even
though both are part of the same txn.
> More precisely insert overwrite requires X lock on partition and the read side needs
an S lock on the query.
> A simpler case is
> insert overwrite ta partition(part=xxxx) select * from ta



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message