From hdfs-issues-return-216084-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Tue Apr 10 17:51:08 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id D9A9A18064C for ; Tue, 10 Apr 2018 17:51:07 +0200 (CEST) Received: (qmail 97040 invoked by uid 500); 10 Apr 2018 15:51:02 -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 97029 invoked by uid 99); 10 Apr 2018 15:51:01 -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; Tue, 10 Apr 2018 15:51:01 +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 8F547C1AE6 for ; Tue, 10 Apr 2018 15:51:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id xmOOIAr1zItY for ; Tue, 10 Apr 2018 15:51:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id F15AE5F5FA for ; Tue, 10 Apr 2018 15:51:00 +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 8C125E0110 for ; Tue, 10 Apr 2018 15:51: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 4D6FA241C6 for ; Tue, 10 Apr 2018 15:51:00 +0000 (UTC) Date: Tue, 10 Apr 2018 15:51:00 +0000 (UTC) From: =?utf-8?Q?=C3=8D=C3=B1igo_Goiri_=28JIRA=29?= To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-13388) RequestHedgingProxyProvider calls multiple configured NNs all the time MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-13388?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] =C3=8D=C3=B1igo Goiri updated HDFS-13388: ------------------------------- Fix Version/s: (was: 2.9.2) > RequestHedgingProxyProvider calls multiple configured NNs all the time > ---------------------------------------------------------------------- > > Key: HDFS-13388 > URL: https://issues.apache.org/jira/browse/HDFS-13388 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs-client > Reporter: Jinglun > Assignee: Jinglun > Priority: Major > Fix For: 2.10.0, 3.2.0, 3.1.1, 3.0.4 > > Attachments: HADOOP-13388.0001.patch, HADOOP-13388.0002.patch, HA= DOOP-13388.0003.patch, HADOOP-13388.0004.patch, HADOOP-13388.0005.patch, HA= DOOP-13388.0006.patch > > > In HDFS-7858 RequestHedgingProxyProvider was designed to "first simultane= ously call multiple configured NNs to decide which is the active Namenode a= nd then for subsequent calls it will invoke the previously successful NN ."= But the current code call multiple configured NNs every time even when we = already got the successful NN.=20 > That's because in RetryInvocationHandler.java, ProxyDescriptor's member = proxyInfo is assigned only when it is constructed or when failover occurs. = RequestHedgingProxyProvider.currentUsedProxy is null in both cases, so the = only proxy we can get is always a dynamic proxy handled by RequestHedgingIn= vocationHandler.class.=C2=A0RequestHedgingInvocationHandler.class handles i= nvoked method by calling multiple configured NNs. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org