Szilard Nemeth created YARN-10672: ------------------------------------- Summary: All testcases in TestReservations are flaky Key: YARN-10672 URL: https://issues.apache.org/jira/browse/YARN-10672 Project: Hadoop YARN Issue Type: Bug Reporter: Szilard Nemeth Assignee: Szilard Nemeth
Running a particular test in TestReservations 100 times never passes all the time. For example, let's run testReservationNoContinueLook 100 times. For me, it produced 39 failed and 61 passed results. Screenshot is attached. Stacktrace: {code} java.lang.AssertionError: Expected :2048 Actual :0 <Click to see difference> at org.junit.Assert.fail(Assert.java:89) at org.junit.Assert.failNotEquals(Assert.java:835) at org.junit.Assert.assertEquals(Assert.java:647) at org.junit.Assert.assertEquals(Assert.java:633) at org.apache.hadoop.yarn.server.resourcemanager.scheduler.capacity.TestReservations.testReservationNoContinueLook(TestReservations.java:642) {code} The test fails here: {code} // Start testing... // Only AM TestUtils.applyResourceCommitRequest(clusterResource, a.assignContainers(clusterResource, node_0, new ResourceLimits(clusterResource), SchedulingMode.RESPECT_PARTITION_EXCLUSIVITY), nodes, apps); assertEquals(2 * GB, a.getUsedResources().getMemorySize()); {code} With some debugging (patch attached), I realized that sometimes there are no registered nodes so the AM can't be allocated. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-dev-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-dev-h...@hadoop.apache.org