Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 689A0200D52 for ; Sat, 18 Nov 2017 06:05:05 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 67027160C0A; Sat, 18 Nov 2017 05:05:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AD63E160BFB for ; Sat, 18 Nov 2017 06:05:04 +0100 (CET) Received: (qmail 37620 invoked by uid 500); 18 Nov 2017 05:05:03 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 37609 invoked by uid 99); 18 Nov 2017 05:05:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Nov 2017 05:05:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id A2CB3C3A46 for ; Sat, 18 Nov 2017 05:05:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -98.702 X-Spam-Level: X-Spam-Status: No, score=-98.702 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_NUMSUBJECT=0.5, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id dENjXFPucbZK for ; Sat, 18 Nov 2017 05:05:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 4B39C5FDE0 for ; Sat, 18 Nov 2017 05:05:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 79003E09A5 for ; Sat, 18 Nov 2017 05:05:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 1D2D9240CE for ; Sat, 18 Nov 2017 05:05:00 +0000 (UTC) Date: Sat, 18 Nov 2017 05:05:00 +0000 (UTC) From: "Mukul Kumar Singh (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-12813) RequestHedgingProxyProvider can hide Exception thrown from the Namenode for proxy size of 1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sat, 18 Nov 2017 05:05:05 -0000 [ https://issues.apache.org/jira/browse/HDFS-12813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16257924#comment-16257924 ] Mukul Kumar Singh commented on HDFS-12813: ------------------------------------------ Let's have two unwrap methods to handle two different cases ExecutionException(InvocationTargetExeption(SomeException)) InvocationTargetException(SomeException) bq. Done Also, the parameter of these two methods should be ExecutionException or InvocationTargetException instead of Exception. bq. Done Pass the unwrapped exception to logProxyException. Then, isStandbyException does not need to unwrap it again. bq. Done Question: It seems to me that the code expects either ExecutionException or InvocationTargetException, could we catch either ExecutionException or InvocationTargetException instead of Exception? bq. Done Question: the patch changes successfulProxy to lastUsedProxy. Then, getProxy() may return "last unsuccessful proxy". Is it okay? bq. I looked into the code and figured that a proxy will be used for {{expectedFailoverCount}} in RetryInvocationHandler#failover before the currently used proxy is being rejected. So I feel it is fine that {{currentUsedProxy}} will be reused. > RequestHedgingProxyProvider can hide Exception thrown from the Namenode for proxy size of 1 > ------------------------------------------------------------------------------------------- > > Key: HDFS-12813 > URL: https://issues.apache.org/jira/browse/HDFS-12813 > Project: Hadoop HDFS > Issue Type: Bug > Components: ha > Reporter: Mukul Kumar Singh > Assignee: Mukul Kumar Singh > Attachments: HDFS-12813.001.patch, HDFS-12813.002.patch, HDFS-12813.003.patch > > > HDFS-11395 fixed the problem where the MultiException thrown by RequestHedgingProxyProvider was hidden. However when the target proxy size is 1, then unwrapping is not done for the InvocationTargetException. for target proxy size of 1, the unwrapping should be done till first level where as for multiple proxy size, it should be done at 2 levels. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org