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 8A3B1200B8E for ; Mon, 26 Sep 2016 14:02:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 88DEC160AC8; Mon, 26 Sep 2016 12:02:27 +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 CA58C160AB8 for ; Mon, 26 Sep 2016 14:02:26 +0200 (CEST) Received: (qmail 33466 invoked by uid 500); 26 Sep 2016 12:02:21 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 33449 invoked by uid 99); 26 Sep 2016 12:02:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Sep 2016 12:02:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C8E272C2A65 for ; Mon, 26 Sep 2016 12:02:20 +0000 (UTC) Date: Mon, 26 Sep 2016 12:02:20 +0000 (UTC) From: "Sunil G (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-12321) Make JvmPauseMonitor an AbstractService MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 26 Sep 2016 12:02:27 -0000 [ https://issues.apache.org/jira/browse/HADOOP-12321?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15522851#comment-15522851 ] Sunil G commented on HADOOP-12321: ---------------------------------- HI [~brahmareddy] As discussed [here|https://issues.apache.org/jira/browse/MAPREDUCE-6462?focusedCommentId=14743205&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14743205] , there were no added advantage to count the number of children for a service. hence it was removed. Any issues? > Make JvmPauseMonitor an AbstractService > --------------------------------------- > > Key: HADOOP-12321 > URL: https://issues.apache.org/jira/browse/HADOOP-12321 > Project: Hadoop Common > Issue Type: New Feature > Affects Versions: 2.8.0 > Reporter: Steve Loughran > Assignee: Sunil G > Fix For: 2.9.0, 3.0.0-alpha1 > > Attachments: 0001-HADOOP-12321.patch, 0002-HADOOP-12321.patch, 0004-HADOOP-12321.patch, HADOOP-12321-003.patch, HADOOP-12321-005-aggregated.patch > > Original Estimate: 1h > Remaining Estimate: 1h > > The new JVM pause monitor has been written with its own start/stop lifecycle which has already proven brittle to both ordering of operations and, even after HADOOP-12313, is not thread safe (both start and stop are potentially re-entrant). > It also requires every class which supports the monitor to add another field and perform the lifecycle operations in its own lifecycle, which, for all Yarn services, is the YARN app lifecycle (as implemented in Hadoop common) > Making the monitor a subclass of {{AbstractService}} and moving the init/start & stop operations in {{serviceInit()}}, {{serviceStart()}} & {{serviceStop()}} methods will fix the concurrency and state model issues, and make it trivial to add as a child to any YARN service which subclasses {{CompositeService}} (most the NM and RM apps) will be able to hook up the monitor simply by creating one in the ctor and adding it as a child. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org