You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Jason Lowe (JIRA)" <ji...@apache.org> on 2016/09/09 16:11:20 UTC

[jira] [Commented] (YARN-5632) UPDATE_EXECUTION_TYPE causes UpdateContainerRequestPBImpl to throw

    [ https://issues.apache.org/jira/browse/YARN-5632?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15477437#comment-15477437 ] 

Jason Lowe commented on YARN-5632:
----------------------------------

Looks like this was missed in the branch-2.8 patch for YARN-5221.  Occasionally TestPBImplRecords will fail as a result if it happens to roll the bad enum as a random value:
{noformat}
org.apache.hadoop.yarn.api.TestPBImplRecords  Time elapsed: 0.671 sec  <<< ERROR!
java.lang.reflect.InvocationTargetException: null
	at java.lang.Enum.valueOf(Enum.java:238)
	at org.apache.hadoop.yarn.proto.YarnServiceProtos$ContainerUpdateTypeProto.valueOf(YarnServiceProtos.java:14)
	at org.apache.hadoop.yarn.api.records.impl.pb.ProtoUtils.convertToProtoFormat(ProtoUtils.java:301)
	at org.apache.hadoop.yarn.api.records.impl.pb.UpdateContainerRequestPBImpl.setContainerUpdateType(UpdateContainerRequestPBImpl.java:135)
	at org.apache.hadoop.yarn.api.records.UpdateContainerRequest.newInstance(UpdateContainerRequest.java:56)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:497)
	at org.apache.hadoop.yarn.api.TestPBImplRecords.generateByNewInstance(TestPBImplRecords.java:451)
	at org.apache.hadoop.yarn.api.TestPBImplRecords.setup(TestPBImplRecords.java:484)
{noformat}


> UPDATE_EXECUTION_TYPE causes UpdateContainerRequestPBImpl to throw
> ------------------------------------------------------------------
>
>                 Key: YARN-5632
>                 URL: https://issues.apache.org/jira/browse/YARN-5632
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: api
>    Affects Versions: 2.8.0
>            Reporter: Jason Lowe
>            Priority: Critical
>
> In branch-2.8 UPDATE_EXECUTION_TYPE is a valid enum in the ContainerUpdateType enum but it is missing from the corresponding ContainerUpdateTypeProto.  This causes the conversion to throw an exception when trying to convert from the enum to the proto.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org