Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-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 4CFB59FAB for ; Fri, 30 Mar 2012 21:37:50 +0000 (UTC) Received: (qmail 12399 invoked by uid 500); 30 Mar 2012 21:37:50 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 12365 invoked by uid 500); 30 Mar 2012 21:37:50 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 12357 invoked by uid 99); 30 Mar 2012 21:37:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Mar 2012 21:37:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Mar 2012 21:37:49 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 07A7C34F34C for ; Fri, 30 Mar 2012 21:37:29 +0000 (UTC) Date: Fri, 30 Mar 2012 21:37:29 +0000 (UTC) From: "Siddharth Seth (Commented) (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <906746663.40116.1333143449032.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1820449045.18007.1332780148507.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-4067) Replace YarnRemoteException with IOException in MRv2 APIs MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-4067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13242773#comment-13242773 ] Siddharth Seth commented on MAPREDUCE-4067: ------------------------------------------- YarnRemoteException was serializing the actual exception and sending it over the wire. It was missing an unwind method to get the actual exception. IAC - clients should not be expected to unwind and that should've been handled in the RPC layer itself. Instead of having the APIs throw an IOException, I'd prefer to define a Yarn / HadoopException which extends Exception and can later be sub-classed for more specific exceptions. Also, possibly add error codes to these exceptions as well as to what is sent over the wire. That may make things easier for clients written in other languages. > Replace YarnRemoteException with IOException in MRv2 APIs > --------------------------------------------------------- > > Key: MAPREDUCE-4067 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-4067 > Project: Hadoop Map/Reduce > Issue Type: Bug > Reporter: Jitendra Nath Pandey > Assignee: Siddharth Seth > Priority: Blocker > > YarnRemoteException is defined as a generic wrapper for all the exceptions in yarn. I think we should instead throw IOExceptions in the API, which can later be extended for more specialized exceptions without breaking compatibility. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira