Return-Path: X-Original-To: apmail-hadoop-yarn-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-yarn-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 4D641100AF for ; Thu, 20 Mar 2014 22:19:53 +0000 (UTC) Received: (qmail 78726 invoked by uid 500); 20 Mar 2014 22:19:49 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 78632 invoked by uid 500); 20 Mar 2014 22:19:48 -0000 Mailing-List: contact yarn-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: yarn-issues@hadoop.apache.org Delivered-To: mailing list yarn-issues@hadoop.apache.org Received: (qmail 78595 invoked by uid 99); 20 Mar 2014 22:19:47 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Mar 2014 22:19:47 +0000 Date: Thu, 20 Mar 2014 22:19:47 +0000 (UTC) From: "Xuan Gong (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-1521) Mark appropriate protocol methods with the idempotent annotation or AtMostOnce annotation 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/YARN-1521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13942409#comment-13942409 ] Xuan Gong commented on YARN-1521: --------------------------------- We have three options for all the protocol APIs: 1. marked as Idempotent 2. marked as AtMostOnce. 3. do nothing The apis can be marked idempotent: * ResourceManagerAdministrationProtocol: 1. refreshQueues 2. refreshNodes 3. refreshSuperUserGroupsConfiguration 4. refreshUserToGroupsMappings 5. refreshAdminAcls 6. refreshServiceAcls * ResourceTracker: 1. registerNodeManager 2. nodeHeartbeat * ApplicationClientProtocol 1. getNewApplication 2. forceKillApplication 3. getApplicationReport 4. getClusterMetrics 5. getApplications 6. getClusterNodes 7. getQueueInfo 8. getQueueUserAcls 9. getApplicationAttemptReport 10. getApplicationAttempts 11. getContainerReport 12. getContainers 13. getDelegationToken These APIs can be marked as AtMostOnce: * ApplicationClientProtocol: 1. submitApplication These apis do not need to add any annotations * ResourceManagerAdministrationProtocol 1. updateNodeResource: Do not find any places using it. Maybe some other applications will use this API. Possibly can be marked idempotent. * ApplicationMasterProtocol 1. registerApplicationMaster 2. finishApplicationMaster 3. allocate * ApplicationClientProtocol: 1. moveApplicationAcrossQueues: Do not support yet There are two APIs which are not in this list: 1. renewDelegationToken 2. cancelDelegationToken We can add the proper annotations for them in https://issues.apache.org/jira/browse/YARN-1776 > Mark appropriate protocol methods with the idempotent annotation or AtMostOnce annotation > ----------------------------------------------------------------------------------------- > > Key: YARN-1521 > URL: https://issues.apache.org/jira/browse/YARN-1521 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Xuan Gong > Assignee: Xuan Gong > > After YARN-1028, we add the automatically failover into RMProxy. This JIRA is to identify whether we need to add idempotent annotation and which methods can be marked as idempotent. -- This message was sent by Atlassian JIRA (v6.2#6252)