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 750B910B13 for ; Thu, 26 Feb 2015 21:17:20 +0000 (UTC) Received: (qmail 68863 invoked by uid 500); 26 Feb 2015 21:17:04 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 68846 invoked by uid 500); 26 Feb 2015 21:17:04 -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 68836 invoked by uid 99); 26 Feb 2015 21:17:04 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Feb 2015 21:17:04 +0000 Date: Thu, 26 Feb 2015 21:17:04 +0000 (UTC) From: "Xiaobing Zhou (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-9642) Hive metastore client retries don't happen consistently for all api calls 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-9642?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14339176#comment-14339176 ] Xiaobing Zhou commented on HIVE-9642: ------------------------------------- Thanks [~thejas]. Let's wait for HIVE-9582 committed so that I can make a patch based on that, otherwise, duplicate efforts. > Hive metastore client retries don't happen consistently for all api calls > ------------------------------------------------------------------------- > > Key: HIVE-9642 > URL: https://issues.apache.org/jira/browse/HIVE-9642 > Project: Hive > Issue Type: Bug > Affects Versions: 1.0.0 > Reporter: Xiaobing Zhou > Assignee: Xiaobing Zhou > Attachments: HIVE-9642.1.patch, HIVE-9642.2.patch > > > When org.apache.thrift.transport.TTransportException is thrown for issues like socket timeout, the retry via RetryingMetaStoreClient happens only in certain cases. > Retry happens for the getDatabase call in but not for getAllDatabases(). > The reason is RetryingMetaStoreClient checks for TTransportException being the cause for InvocationTargetException. But in case of some calls such as getAllDatabases in HiveMetastoreClient, all exceptions get wrapped in a MetaException. We should remove this unnecessary wrapping of exceptions for certain functions in HMC. -- This message was sent by Atlassian JIRA (v6.3.4#6332)