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 09542F4F7 for ; Wed, 1 May 2013 22:22:17 +0000 (UTC) Received: (qmail 18204 invoked by uid 500); 1 May 2013 22:22:16 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 18128 invoked by uid 500); 1 May 2013 22:22:16 -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 18117 invoked by uid 500); 1 May 2013 22:22:16 -0000 Delivered-To: apmail-hadoop-hive-dev@hadoop.apache.org Received: (qmail 18113 invoked by uid 99); 1 May 2013 22:22:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 May 2013 22:22:16 +0000 Date: Wed, 1 May 2013 22:22:16 +0000 (UTC) From: "Carl Steinbach (JIRA)" To: hive-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-4467) HiveConnection does not handle failures correctly 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-4467?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13647003#comment-13647003 ] Carl Steinbach commented on HIVE-4467: -------------------------------------- The HS2 API is modeled on the [SQL/CLI standard|http://en.wikipedia.org/wiki/SQL/CLI]. In most cases SQL/CLI is interchangeable with ODBC, so most answers about why things are structured the way they are can be answered by consulting the ODBC API documentation. Here's the relevant page for SUCCESS_WITH_INFO: http://msdn.microsoft.com/en-us/library/windows/desktop/ms716219(v=vs.85).aspx > HiveConnection does not handle failures correctly > ------------------------------------------------- > > Key: HIVE-4467 > URL: https://issues.apache.org/jira/browse/HIVE-4467 > Project: Hive > Issue Type: Bug > Components: HiveServer2, JDBC > Affects Versions: 0.11.0, 0.12.0 > Reporter: Thiruvel Thirumoolan > Assignee: Thiruvel Thirumoolan > Fix For: 0.11.0, 0.12.0 > > Attachments: HIVE-4467.patch > > > HiveConnection uses Utils.verifySuccess* routines to check if there is any error from the server side. This is not handled well. In Utils.verifySuccess() when withInfo is 'false', the condition evaluates to 'false' and no SQLexception is thrown even though there could be a problem on the server. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira