[ https://issues.apache.org/jira/browse/YARN-9262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16758145#comment-16758145 ]
Wilfred Spiegelenburg commented on YARN-9262: --------------------------------------------- The failure occurs because no {{Allocation}} object comes back as the {{when}} mock call does not fit the arguments. When the AM gets allocated we have {{null}} values in 3 places and the {{when}} should look like this: {code} when(scheduler.allocate(any(ApplicationAttemptId.class), any(List.class), any(), any(List.class), any(), any(), any(ContainerUpdates.class))). {code} > TestRMAppAttemptTransitions is failing with an NPE > -------------------------------------------------- > > Key: YARN-9262 > URL: https://issues.apache.org/jira/browse/YARN-9262 > Project: Hadoop YARN > Issue Type: Bug > Components: resourcemanager > Affects Versions: 3.2.0, 3.1.2, 3.3.0 > Reporter: Sunil Govindan > Assignee: lujie > Priority: Critical > > hadoop.yarn.server.resourcemanager.rmapp.attempt.TestRMAppAttemptTransitions > fails due to an NPE post YARN-9194 > {code} > java.lang.NullPointerException > at > org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl$AMContainerAllocatedTransition.transition(RMAppAttemptImpl.java:1202) > at > org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl$AMContainerAllocatedTransition.transition(RMAppAttemptImpl.java:1182) > at > org.apache.hadoop.yarn.state.StateMachineFactory$MultipleInternalArc.doTransition(StateMachineFactory.java:385) > at > org.apache.hadoop.yarn.state.StateMachineFactory.doTransition(StateMachineFactory.java:302) > at > org.apache.hadoop.yarn.state.StateMachineFactory.access$500(StateMachineFactory.java:46) > at > org.apache.hadoop.yarn.state.StateMachineFactory$InternalStateMachine.doTransition(StateMachineFactory.java:487) > at > org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl.handle(RMAppAttemptImpl.java:915) > at > org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl.handle(RMAppAttemptImpl.java:121) > {code} > cc [~xiaoheipangzi] -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org