[ https://issues.apache.org/jira/browse/YARN-4556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15088728#comment-15088728 ]
Akihiro Suda commented on YARN-4556: ------------------------------------ {{AdminService.updateNodeResource()}} is asynchronous; it just enqueues {{RMNodeResourceUpdateEvent}} via {{AsyncDispatcher.handle()}}. https://github.com/apache/hadoop/blob/89022f8d4bac0e9d0b848fd91e9c4d700fe1cdbe/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java#L610-L611 So we need to add some delays and retries to the test. > TestFifoScheduler.testResourceOverCommit fails > ----------------------------------------------- > > Key: YARN-4556 > URL: https://issues.apache.org/jira/browse/YARN-4556 > Project: Hadoop YARN > Issue Type: Sub-task > Components: scheduler > Reporter: Akihiro Suda > > From YARN-4548 Jenkins log: > https://builds.apache.org/job/PreCommit-YARN-Build/10181/artifact/patchprocess/patch-unit-hadoop-yarn-project_hadoop-yarn_hadoop-yarn-server_hadoop-yarn-server-resourcemanager-jdk1.8.0_66.txt > {code} > Running > org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.TestFifoScheduler > Tests run: 16, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 31.004 sec > <<< FAILURE! - in > org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.TestFifoScheduler > testResourceOverCommit(org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.TestFifoScheduler) > Time elapsed: 4.746 sec <<< FAILURE! > java.lang.AssertionError: expected:<-2048> but was:<0> > at org.junit.Assert.fail(Assert.java:88) > at org.junit.Assert.failNotEquals(Assert.java:743) > at org.junit.Assert.assertEquals(Assert.java:118) > at org.junit.Assert.assertEquals(Assert.java:555) > at org.junit.Assert.assertEquals(Assert.java:542) > at > org.apache.hadoop.yarn.server.resourcemanager.scheduler.fifo.TestFifoScheduler.testResourceOverCommit(TestFifoScheduler.java:1142) > {code} > https://github.com/apache/hadoop/blob/8676a118a12165ae5a8b80a2a4596c133471ebc1/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fifo/TestFifoScheduler.java#L1142 > It seems that Jenkins has been hitting this intermittently since April 2015 > https://www.google.com/search?q=TestFifoScheduler.testResourceOverCommit -- This message was sent by Atlassian JIRA (v6.3.4#6332)