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 8384E200BD2 for ; Fri, 28 Oct 2016 23:24:00 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 827AC160ACA; Fri, 28 Oct 2016 21:24:00 +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 CE746160AF5 for ; Fri, 28 Oct 2016 23:23:59 +0200 (CEST) Received: (qmail 47613 invoked by uid 500); 28 Oct 2016 21:23:59 -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 47539 invoked by uid 99); 28 Oct 2016 21:23:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Oct 2016 21:23:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id CE66F2C2A68 for ; Fri, 28 Oct 2016 21:23:58 +0000 (UTC) Date: Fri, 28 Oct 2016 21:23:58 +0000 (UTC) From: "Sangjin Lee (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-5184) Fix up incompatible changes introduced on ContainerStatus and NodeReport MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 28 Oct 2016 21:24:00 -0000 [ https://issues.apache.org/jira/browse/YARN-5184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15616632#comment-15616632 ] Sangjin Lee commented on YARN-5184: ----------------------------------- {quote} In the patch, the methods throw UnsupportedException. I had suggested this in an offline discussion with Sangjin, but I am not sure about it now. With this update, the downstream classes would continue to compile. This, however, can lead to RuntimeExceptions which is likely worse than compile time issues. I guess it depends on whether these methods end up being called. I can't think of a good solution, but thought I should bring this up. {quote} I thought about that, and I think the risk is pretty minimal. No subclass/user of this class that exists today would be affected because they do not invoke the new methods as obviously they don't know the new methods. The only downside is later if a new subclass is created and forgets to override these methods (which will not be caught by the compiler). But then I suppose these classes are not really to be subclassed by users of Hadoop other than test or mock cases. Another way to solve it would be to provide real implementations that would work for all cases. But I don't think that's possible as the real implementations come from PBImpl classes... > Fix up incompatible changes introduced on ContainerStatus and NodeReport > ------------------------------------------------------------------------ > > Key: YARN-5184 > URL: https://issues.apache.org/jira/browse/YARN-5184 > Project: Hadoop YARN > Issue Type: Bug > Components: api > Affects Versions: 2.9.0 > Reporter: Karthik Kambatla > Assignee: Karthik Kambatla > Priority: Blocker > Attachments: YARN-5184-branch-2.8.poc.patch, YARN-5184-branch-2.poc.patch > > > YARN-2882 and YARN-5430 broke compatibility by adding abstract methods to ContainerStatus. Since ContainerStatus is a Public-Stable class, adding abstract methods to this class breaks any extensions. > To fix this, we should add default implementations to these new methods and not leave them as abstract. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: yarn-issues-help@hadoop.apache.org