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

TestSchedulingMonitor#testRMStarts fails sporadically

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.9.0, 2.7.4, 3.0.0-alpha4, 2.8.2
    • 2.9.0, 2.8.3, 2.7.5, 3.0.0, 3.1.0
    • None
    • None

    Description

      TestSchedulingMonitor has been failing sporadically in precommit builds. Failures look like this:

      Running org.apache.hadoop.yarn.server.resourcemanager.monitor.TestSchedulingMonitor
      Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.802 sec <<< FAILURE! - in org.apache.hadoop.yarn.server.resourcemanager.monitor.TestSchedulingMonitor
      testRMStarts(org.apache.hadoop.yarn.server.resourcemanager.monitor.TestSchedulingMonitor)  Time elapsed: 1.728 sec  <<< FAILURE!
      org.mockito.exceptions.verification.WantedButNotInvoked: 
      Wanted but not invoked:
      schedulingEditPolicy.editSchedule();
      -> at org.apache.hadoop.yarn.server.resourcemanager.monitor.TestSchedulingMonitor.testRMStarts(TestSchedulingMonitor.java:58)
      
      However, there were other interactions with this mock:
      -> at org.apache.hadoop.yarn.server.resourcemanager.monitor.SchedulingMonitor.<init>(SchedulingMonitor.java:50)
      -> at org.apache.hadoop.yarn.server.resourcemanager.monitor.SchedulingMonitor.serviceInit(SchedulingMonitor.java:61)
      -> at org.apache.hadoop.yarn.server.resourcemanager.monitor.SchedulingMonitor.serviceInit(SchedulingMonitor.java:62)
      
      	at org.apache.hadoop.yarn.server.resourcemanager.monitor.TestSchedulingMonitor.testRMStarts(TestSchedulingMonitor.java:58)
      

      Attachments

        1. YARN-7084.001.patch
          3 kB
          Jason Darrell Lowe

        Issue Links

          Activity

            People

              jlowe Jason Darrell Lowe
              jlowe Jason Darrell Lowe
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: