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 5106E200CB0 for ; Fri, 23 Jun 2017 20:06:08 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5023C160BE5; Fri, 23 Jun 2017 18:06:08 +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 6E80C160BE2 for ; Fri, 23 Jun 2017 20:06:07 +0200 (CEST) Received: (qmail 33988 invoked by uid 500); 23 Jun 2017 18:06:06 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 33967 invoked by uid 99); 23 Jun 2017 18:06:05 -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; Fri, 23 Jun 2017 18:06:05 +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 299C6CF5DE for ; Fri, 23 Jun 2017 18:06:04 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, 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 OjcJXWhLRJ0J for ; Fri, 23 Jun 2017 18:06:03 +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 50B645F2FD for ; Fri, 23 Jun 2017 18:06:02 +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 5F2D0E0DE3 for ; Fri, 23 Jun 2017 18:06:01 +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 3B2A1240C0 for ; Fri, 23 Jun 2017 18:06:00 +0000 (UTC) Date: Fri, 23 Jun 2017 18:06:00 +0000 (UTC) From: "Subru Krishnan (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (YARN-3659) Federation Router (hiding multiple RMs for ApplicationClientProtocol) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 23 Jun 2017 18:06:08 -0000 [ https://issues.apache.org/jira/browse/YARN-3659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16060350#comment-16060350 ] Subru Krishnan edited comment on YARN-3659 at 6/23/17 6:05 PM: --------------------------------------------------------------- Thanks [~giovanni.fumarola] for working on this. I looked at your patch, please find my comments below: * A general note on Javadocs - missing code/link annotations throughout. * Can you add some documentation for ROUTER_CLIENTRM_SUBMIT_RETRY. You will also need to exclude it in {{TestYarnConfigurationFields}}. * Is it possible to move the check of subcluster list being empty to {{AbstractRouterPolicy}} to prevent duplication? * A note on *isRunning* field in {{MockResourceManagerFacade}} will be useful. * Rename NO_SUBCLUSTER_MESSAGE to NO_ACTIVE_SUBCLUSTER_AVAILABLE and update the value accordingly. * Why is the visibility of {{RouterUtil}} public? I feel you can also rename it to RouterServerUtil. * Resolution of UGI can be moved to {{AbstractClientRequestInterceptor}} as again all child classes are duplicating the same code. * Would it be better to use *LRUCacheHashMap* for _clientRMProxies_? * Rename *getApplicationClientProtocolFromSubClusterId* --> *getClientRMProxyForSubCluster*. * Distinguish the log message for different exceptions for clarity. * Use the {{UniformRandomRouterPolicy}} to determine a random subcluster as that's the purpose of the policy. * {code} Client: behavior as YARN. should be Client: identical behavior as {@code ClientRMService}. {code} * Documentation for exception handling in *submitApplication* is unclear, please rephrase it. * Rename _aclTemp_ to _clientRMProxy_. * {code}"Unable to create a new application to SubCluster " should be " No response when attempting to submit the application " + applicationId + "to SubCluster " + subClusterId.getId() {code}. * The log statement for app submission can be moved to post successful submission as it's redundant now. * We should forward any exceptions we get on *forceKillApplication* and *getApplicationReport* to client. * Have a note upfront saying we have only implemented the core functionalities and rest will be done in a follow up JIRA (create and link). * Use {{FederationStateStoreTestUtil}} for helper methods like *registerSubCluster/deRegisterSubCluster/registerSubClusters*. * In {{TestFederationClientInterceptorRetry}}, assert that *getApplicationHomeSubCluster* is the good subCluster. was (Author: subru): Thanks [~giovanni.fumarola] for working on this. I looked at your patch, please find my comments below: * A general note on Javadocs - missing code/link annotations throughout. * Can you add some documentation for ROUTER_CLIENTRM_SUBMIT_RETRY. You will also need to exclude it in {{TestYarnConfigurationFields}}. * Is it possible to move the check of subcluster list being empty to {{AbstractRouterPolicy}} to prevent duplication? * A note on *isRunning* field in {{MockResourceManagerFacade}} will be useful. * Rename NO_SUBCLUSTER_MESSAGE to NO_ACTIVE_SUBCLUSTER_AVAILABLE and update the value accordingly. * Why is the visibility of {{RouterUtil}} public? I feel you can also rename it to RouterServerUtil. * Resolution of UGI can be moved to {{AbstractClientRequestInterceptor}} as again all child classes are duplicating the same code. * Would it be better to use *LRUCacheHashMap* for _clientRMProxies_? * Rename *getApplicationClientProtocolFromSubClusterId* --> *getClientRMProxyForSubCluster*. * Distinguish the log message for different exceptions for clarity. * Use the {{UniformRandomRouterPolicy}} to determine a random subcluster as that's the purpose of the policy. * {code} Client: behavior as YARN. should be Client: identical behavior as {@code ClientRMService}. {code} * Documentation for exception handling in *submitApplication* is unclear, please rephrase it. * Rename _aclTemp_ to _clientRMProxy_. * {code}"Unable to create a new application to SubCluster " should be " No response when attempting to submit the application " + applicationId + "to SubCluster " + subClusterId.getId() {code}. * The log statement for app submission can be moved to post successful submission as it's redundant now. * We should forward any exceptions we get on *forceKillApplication* and *getApplicationReport* to client. * Have a note upfront saying we have only implemented the core functionalities and rest will be done in a follow up JIRA (create and link). > Federation Router (hiding multiple RMs for ApplicationClientProtocol) > --------------------------------------------------------------------- > > Key: YARN-3659 > URL: https://issues.apache.org/jira/browse/YARN-3659 > Project: Hadoop YARN > Issue Type: Sub-task > Components: client, resourcemanager > Reporter: Giovanni Matteo Fumarola > Assignee: Giovanni Matteo Fumarola > Attachments: YARN-3659.pdf, YARN-3659-YARN-2915.1.patch, YARN-3659-YARN-2915.draft.patch > > > This JIRA tracks the design/implementation of the layer for routing ApplicaitonClientProtocol requests to the appropriate > RM(s) in a federated YARN cluster. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org