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 14CEF17586 for ; Tue, 21 Apr 2015 20:59:00 +0000 (UTC) Received: (qmail 30488 invoked by uid 500); 21 Apr 2015 20:59:00 -0000 Delivered-To: apmail-hive-issues-archive@hive.apache.org Received: (qmail 30467 invoked by uid 500); 21 Apr 2015 20:59:00 -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 30452 invoked by uid 99); 21 Apr 2015 20:58:59 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Apr 2015 20:58:59 +0000 Date: Tue, 21 Apr 2015 20:58:59 +0000 (UTC) From: "Szehon Ho (JIRA)" To: issues@hive.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HIVE-10384) RetryingMetaStoreClient does not retry wrapped TTransportExceptions 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-10384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14505746#comment-14505746 ] Szehon Ho commented on HIVE-10384: ---------------------------------- Makes sense to me, +1 > RetryingMetaStoreClient does not retry wrapped TTransportExceptions > ------------------------------------------------------------------- > > Key: HIVE-10384 > URL: https://issues.apache.org/jira/browse/HIVE-10384 > Project: Hive > Issue Type: Bug > Components: Clients > Reporter: Eric Liang > Assignee: Chaoyu Tang > Attachments: HIVE-10384.patch > > > This bug is very similar to HIVE-9436, in that a TTransportException wrapped in a MetaException will not be retried. RetryingMetaStoreClient has a block of code above the MetaException handler that retries thrift exceptions, but this doesn't work when the exception is wrapped. > {code} > if ((e.getCause() instanceof TApplicationException) || > (e.getCause() instanceof TProtocolException) || > (e.getCause() instanceof TTransportException)) { > caughtException = (TException) e.getCause(); > } else if ((e.getCause() instanceof MetaException) && > e.getCause().getMessage().matches("(?s).*JDO[a-zA-Z]*Exception.*")) { > caughtException = (MetaException) e.getCause(); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)