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 846BC17F55 for ; Fri, 29 May 2015 19:15:17 +0000 (UTC) Received: (qmail 90984 invoked by uid 500); 29 May 2015 19:15:17 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 90961 invoked by uid 500); 29 May 2015 19:15:17 -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 90950 invoked by uid 99); 29 May 2015 19:15:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 May 2015 19:15:17 +0000 Date: Fri, 29 May 2015 19:15:17 +0000 (UTC) From: "Chaoyu Tang (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-10835) Concurrency issues in JDBC driver 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-10835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14565241#comment-14565241 ] Chaoyu Tang commented on HIVE-10835: ------------------------------------ I think resolving this JIRA might be helpful since it can be used as one of test cases to HIVE-4239. [~thejas], [~xuefuz], [~szehon] and [~sershe], could you review the patch? Thanks > Concurrency issues in JDBC driver > --------------------------------- > > Key: HIVE-10835 > URL: https://issues.apache.org/jira/browse/HIVE-10835 > Project: Hive > Issue Type: Bug > Components: JDBC > Affects Versions: 1.2.0 > Reporter: Chaoyu Tang > Assignee: Chaoyu Tang > Attachments: HIVE-10835.1.patch, HIVE-10835.2.patch, HIVE-10835.patch > > > Though JDBC specification specifies that "Each Connection object can create multiple Statement objects that may be used concurrently by the program", but that does not work in current Hive JDBC driver. In addition, there also exist race conditions between DatabaseMetaData, Statement and ResultSet as long as they make RPC calls to HS2 using same Thrift transport, which happens within a connection. > So we need a connection level lock to serialize all these RPC calls in a connection. -- This message was sent by Atlassian JIRA (v6.3.4#6332)