Return-Path: X-Original-To: apmail-hive-issues-archive@minotaur.apache.org Delivered-To: apmail-hive-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0A48217257 for ; Tue, 28 Apr 2015 18:20:08 +0000 (UTC) Received: (qmail 66786 invoked by uid 500); 28 Apr 2015 18:20:08 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 66766 invoked by uid 500); 28 Apr 2015 18:20:07 -0000 Mailing-List: contact issues-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list issues@hive.apache.org Received: (qmail 66670 invoked by uid 99); 28 Apr 2015 18:20:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2015 18:20:07 +0000 Date: Tue, 28 Apr 2015 18:20:07 +0000 (UTC) From: "Alan Gates (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-10483) insert overwrite partition deadlocks on itself with DbTxnManager MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HIVE-10483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14517574#comment-14517574 ] Alan Gates commented on HIVE-10483: ----------------------------------- +1 > insert overwrite partition 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 > Attachments: HIVE-10483.patch > > > 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)