You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Hudson (JIRA)" <ji...@apache.org> on 2019/04/03 13:43:00 UTC
[jira] [Commented] (YARN-4901) QueueMetrics needs to be cleared
before MockRM is initialized
[ https://issues.apache.org/jira/browse/YARN-4901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16808733#comment-16808733 ]
Hudson commented on YARN-4901:
------------------------------
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #16334 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/16334/])
YARN-4901. QueueMetrics needs to be cleared before MockRM is (sunilg: rev 002dcc4ebf79bbaa5e603565640d8289991d781f)
* (edit) hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/MockRM.java
> QueueMetrics needs to be cleared before MockRM is initialized
> -------------------------------------------------------------
>
> Key: YARN-4901
> URL: https://issues.apache.org/jira/browse/YARN-4901
> Project: Hadoop YARN
> Issue Type: Bug
> Components: scheduler
> Reporter: Daniel Templeton
> Assignee: Peter Bacsko
> Priority: Major
> Fix For: 3.3.0
>
> Attachments: YARN-4901-001.patch
>
>
> 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
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org