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 72C0818137 for ; Sat, 27 Feb 2016 16:43:18 +0000 (UTC) Received: (qmail 13558 invoked by uid 500); 27 Feb 2016 16:43:18 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 13535 invoked by uid 500); 27 Feb 2016 16:43:18 -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 13520 invoked by uid 99); 27 Feb 2016 16:43:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 27 Feb 2016 16:43:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 0CC162C14F2 for ; Sat, 27 Feb 2016 16:43:18 +0000 (UTC) Date: Sat, 27 Feb 2016 16:43:18 +0000 (UTC) From: "Eugene Koifman (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-12637) make retryable SQLExceptions in TxnHandler configurable 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-12637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15170647#comment-15170647 ] Eugene Koifman commented on HIVE-12637: --------------------------------------- look at TxnHandler.checkRetryable() for example. It has logic to retry certain errors and propagate others. The list of errors it will retry is baked into the code. It would be more flexible if instead there was a configurable (by end user) list of errors that will be retried. For example, "ORA-08176" is not there currently. I suggest that we need to add a mechanism where the user can specify any number of RegEx strings and we'll check (in checkRetryable) if (DB_TYPE + ex.getMessage() + ex.getSQLState() + ex.getErrorCode()) matches any of the RegExes and if so, consider the error retryable. > make retryable SQLExceptions in TxnHandler configurable > ------------------------------------------------------- > > Key: HIVE-12637 > URL: https://issues.apache.org/jira/browse/HIVE-12637 > Project: Hive > Issue Type: Improvement > Components: Transactions > Affects Versions: 1.0.0 > Reporter: Eugene Koifman > Assignee: Wei Zheng > > same for CompactionTxnHandler > would be convenient if the user could specify some RegEx (perhaps by db type) which will tell TxnHandler.checkRetryable() that this is should be retried. > The regex should probably apply to String produced by > {noformat} > private static String getMessage(SQLException ex) { > return ex.getMessage() + "(SQLState=" + ex.getSQLState() + ",ErrorCode=" + ex.getErrorCode() + ")"; > } > {noformat} > This make it flexible. > See if we need to add Db type (and possibly version) of the DB being used. > With 5 different DBs supported this gives control end users. -- This message was sent by Atlassian JIRA (v6.3.4#6332)