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

TestSchedulingMonitor#testRMStarts fails sporadically

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.9.0, 2.7.4, 3.0.0-alpha4, 2.8.2
    • Fix Version/s: 2.9.0, 2.8.3, 2.7.5, 3.0.0, 3.1.0
    • Component/s: None
    • Labels:
      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

          Issue Links

            Activity

              People

              • Assignee:
                jlowe Jason Lowe
                Reporter:
                jlowe Jason Lowe
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: