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 C863510EF7 for ; Fri, 20 Dec 2013 02:51:07 +0000 (UTC) Received: (qmail 19706 invoked by uid 500); 20 Dec 2013 02:51:07 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 19681 invoked by uid 500); 20 Dec 2013 02:51:07 -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 19664 invoked by uid 99); 20 Dec 2013 02:51:07 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Dec 2013 02:51:07 +0000 Date: Fri, 20 Dec 2013 02:51:06 +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 methods of ApplicationClientProtocol, ResourceManagerAdminist, ApplicationMasterProtocol and ResourceTracker with the idempotent 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=13853610#comment-13853610 ] Xuan Gong commented on YARN-1521: --------------------------------- Currently, we only do the failover on these exceptions : ConnectException, NoRouteToHostException, UnknownHostException, StandbyException and ConnectTimeoutException. I am thinking that if we can use the idempotent annotation. {code} if (e instanceof SocketException || (e instanceof IOException && !(e instanceof RemoteException))) { if (isIdempotentOrAtMostOnce) { return RetryAction.FAILOVER_AND_RETRY; } else { return new RetryAction(RetryAction.RetryDecision.FAIL, 0, "the invoked method is not idempotent, and unable to determine " + "whether it was invoked"); } {code} > Mark appropriate methods of ApplicationClientProtocol, ResourceManagerAdminist, ApplicationMasterProtocol and ResourceTracker with the idempotent 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.1.4#6159)