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 A69AFD305 for ; Thu, 7 Feb 2013 20:39:13 +0000 (UTC) Received: (qmail 73233 invoked by uid 500); 7 Feb 2013 20:39:13 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 73196 invoked by uid 500); 7 Feb 2013 20:39:13 -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 73187 invoked by uid 99); 7 Feb 2013 20:39:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2013 20:39:13 +0000 Date: Thu, 7 Feb 2013 20:39:13 +0000 (UTC) From: "Siddharth Seth (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-142) Change YARN APIs to throw IOException 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-142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13573901#comment-13573901 ] Siddharth Seth commented on YARN-142: ------------------------------------- bq. and draw attention to the different subclasses in the javadoc if needed. While YarnRemoteException is a subclass of IOException, explicitly calling it out in the API isn't super useful. Was hoping to keep exceptions generated by YARN separate from RPC errors. The RPC layer, however, doesn not seem to handle anything other than IOException and it's derivatives. Changing YarnRemoteException to be independent of IOException would be in incompatible change at a later point - so maybe we should consider fixing the RPC layer to allow additional exceptions right now. > Change YARN APIs to throw IOException > ------------------------------------- > > Key: YARN-142 > URL: https://issues.apache.org/jira/browse/YARN-142 > Project: Hadoop YARN > Issue Type: Sub-task > Affects Versions: 0.23.3, 2.0.0-alpha > Reporter: Siddharth Seth > Assignee: Xuan Gong > Priority: Critical > Attachments: YARN-142.1.patch, YARN-142.2.patch, YARN-142.3.patch, YARN-142.4.patch > > > Ref: MAPREDUCE-4067 > All YARN APIs currently throw YarnRemoteException. > 1) This cannot be extended in it's current form. > 2) The RPC layer can throw IOExceptions. These end up showing up as UndeclaredThrowableExceptions. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira