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 "Anubhav Dhoot (JIRA)" <ji...@apache.org> on 2014/05/23 08:39:01 UTC

[jira] [Created] (YARN-2096) testQueueMetricsOnRMRestart has race condition

Anubhav Dhoot created YARN-2096:
-----------------------------------

             Summary: testQueueMetricsOnRMRestart has race condition
                 Key: YARN-2096
                 URL: https://issues.apache.org/jira/browse/YARN-2096
             Project: Hadoop YARN
          Issue Type: Bug
            Reporter: Anubhav Dhoot


org.apache.hadoop.yarn.server.resourcemanager.TestRMRestart.testQueueMetricsOnRMRestart fails randomly because of a race condition.
The test validates that metrics are incremented, but does not wait for all transitions to finish before checking for the values.
It also resets metrics after kicking off recovery of second RM. The metrics that need to be incremented race with this reset causing test to fail randomly.
We need to wait for the right transitions.



--
This message was sent by Atlassian JIRA
(v6.2#6252)