Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B75CA118B4 for ; Fri, 23 May 2014 22:20:04 +0000 (UTC) Received: (qmail 39033 invoked by uid 500); 23 May 2014 22:20:02 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 38964 invoked by uid 500); 23 May 2014 22:20:01 -0000 Mailing-List: contact dev-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 dev@hive.apache.org Received: (qmail 38955 invoked by uid 500); 23 May 2014 22:20:01 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 38952 invoked by uid 99); 23 May 2014 22:20:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2014 22:20:01 +0000 Date: Fri, 23 May 2014 22:20:01 +0000 (UTC) From: "Alan Gates (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HIVE-6967) Hive transaction manager fails when SQLServer is used as an RDBMS 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-6967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Alan Gates updated HIVE-6967: ----------------------------- Attachment: HIVE-6967.patch A patch that changes the transaction manager to use serializable isolation instead of select for update. Each operation is allowed to select whether it wants serializable (which ones that used to use select for update use) or read committed (for other operations). > Hive transaction manager fails when SQLServer is used as an RDBMS > ----------------------------------------------------------------- > > Key: HIVE-6967 > URL: https://issues.apache.org/jira/browse/HIVE-6967 > Project: Hive > Issue Type: Bug > Components: Locking > Affects Versions: 0.13.0 > Reporter: Alan Gates > Assignee: Alan Gates > Attachments: HIVE-6967.patch > > > When using SQLServer as an RDBMS for the metastore, any transaction or DbLockMgr operations fail with: > {code} > MetaException(message:Unable to select from transaction database com.microsoft.sqlserver.jdbc.SQLServerException: Line 1: FOR UPDATE clause allowed only for DECLARE CURSOR. > {code} > The issue is that SQLServer does not support the FOR UPDATE clause in SELECT. -- This message was sent by Atlassian JIRA (v6.2#6252)