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 2AAF3187C4 for ; Wed, 6 Apr 2016 07:07:26 +0000 (UTC) Received: (qmail 70146 invoked by uid 500); 6 Apr 2016 07:07:26 -0000 Delivered-To: apmail-hadoop-yarn-issues-archive@hadoop.apache.org Received: (qmail 70044 invoked by uid 500); 6 Apr 2016 07:07:25 -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 69953 invoked by uid 99); 6 Apr 2016 07:07:25 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Apr 2016 07:07:25 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id A4CBD2C1F5C for ; Wed, 6 Apr 2016 07:07:25 +0000 (UTC) Date: Wed, 6 Apr 2016 07:07:25 +0000 (UTC) From: "Karthik Kambatla (JIRA)" To: yarn-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (YARN-4901) MockRM should clear the QueueMetrics when it starts 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-4901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15227867#comment-15227867 ] Karthik Kambatla commented on YARN-4901: ---------------------------------------- TestNMReconnect fails with FairScheduler because of this. > MockRM should clear the QueueMetrics when it starts > --------------------------------------------------- > > Key: YARN-4901 > URL: https://issues.apache.org/jira/browse/YARN-4901 > Project: Hadoop YARN > Issue Type: Bug > Components: scheduler > Reporter: Daniel Templeton > Assignee: Daniel Templeton > > The {{ResourceManager}} rightly assumes that when it starts, it's starting from naught. The {{MockRM}}, however, violates that assumption. For example, in {{TestNMReconnect}}, each test method creates a new {{MockRM}} instance. The {{QueueMetrics.queueMetrics}} field is static, which means that when multiple {{MockRM}} instances are created, the {{QueueMetrics}} bleed over. Having the MockRM clear the {{QueueMetrics}} when it starts should resolve the issue. I haven't looked yet at scope to see how hard easy that is to do. -- This message was sent by Atlassian JIRA (v6.3.4#6332)