hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ming Ma (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-4620) getApplicationAttemptReport could throw exception in the case of unmanaged app
Date Thu, 21 Jan 2016 06:23:39 GMT
Ming Ma created YARN-4620:
-----------------------------

             Summary: getApplicationAttemptReport could throw exception in the case of unmanaged
app 
                 Key: YARN-4620
                 URL: https://issues.apache.org/jira/browse/YARN-4620
             Project: Hadoop YARN
          Issue Type: Bug
            Reporter: Ming Ma


Got the following exception during YARN-4619.

{noformat}
Caused by: org.apache.hadoop.ipc.RemoteException(java.lang.IllegalArgumentException): No enum
constant org.apache.hadoop.yarn.api.records.YarnApplicationAttemptState.LAUNCHED_UNMANAGED_SAVING
	at java.lang.Enum.valueOf(Enum.java:236)
	at org.apache.hadoop.yarn.api.records.YarnApplicationAttemptState.valueOf(YarnApplicationAttemptState.java:27)
	at org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptImpl.createApplicationAttemptReport(RMAppAttemptImpl.java:1946)
	at org.apache.hadoop.yarn.server.resourcemanager.ClientRMService.getApplicationAttemptReport(ClientRMService.java:375)
	at org.apache.hadoop.yarn.api.impl.pb.service.ApplicationClientProtocolPBServiceImpl.getApplicationAttemptReport(ApplicationClientProtocolPBServiceImpl.java:360)
	at org.apache.hadoop.yarn.proto.ApplicationClientProtocol$ApplicationClientProtocolService$2.callBlockingMethod(ApplicationClientProtocol.java:441)
	at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:619)
	at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:962)
	at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2084)
	at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2080)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:415)
{noformat}


So the root cause is {{RMAppAttemptImpl}} tries to map internal state {{RMAppAttemptState}}
to external API state {{YarnApplicationAttemptState}}. {{RMAppAttemptState}} defines LAUNCHED_UNMANAGED_SAVING,
but {{YarnApplicationAttemptState}} doesn't.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message