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 "Daniel Templeton (JIRA)" <ji...@apache.org> on 2016/03/30 23:55:25 UTC

[jira] [Created] (YARN-4901) MockRM should clear the QueueMetrics when it starts

Daniel Templeton created YARN-4901:
--------------------------------------

             Summary: 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)