Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-4901

QueueMetrics needs to be cleared before MockRM is initialized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0, 3.2.2, 3.1.4, 2.10.1
    • scheduler
    • None
    • Reviewed

    Description

      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.

      Attachments

        1. YARN-4901-001.patch
          2 kB
          Peter Bacsko
        2. YARN-4901-branch-3.2.002.patch
          2 kB
          Manikandan R

        Issue Links

          Activity

            People

              pbacsko Peter Bacsko
              templedf Daniel Templeton
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: