[ https://issues.apache.org/jira/browse/YARN-10840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Prabhu Joseph updated YARN-10840: --------------------------------- Attachment: (was: YARN-10840-001.patch) > yarn app status fails with ArrayIndexOutOfBoundsException > ---------------------------------------------------------- > > Key: YARN-10840 > URL: https://issues.apache.org/jira/browse/YARN-10840 > Project: Hadoop YARN > Issue Type: Bug > Components: yarn-native-services > Reporter: Abhinaba Sarkar > Assignee: Abhinaba Sarkar > Priority: Major > Attachments: YARN-10840-001.patch > > > Array index out of bounds exception in the ClientAMService.getStatus() - > {code:java} > 2021-07-04 20:00:24,488 [IPC Server handler 0 on 25347] INFO ipc.Server - > IPC Server handler 0 on 25347, call Call#163 Retry#0 > org.apache.hadoop.yarn.service.ClientAMProtocol.getStatus from 10.0.0.10:42446 > org.codehaus.jackson.map.JsonMappingException: Index: 11, Size: 11 (through > reference chain: > org.apache.hadoop.yarn.service.api.records.Service["components"]->java.util.ArrayList[0]->org.apache.hadoop.yarn.service.api.records.Component["containers"]->java.util.ArrayList[11]) > at > org.codehaus.jackson.map.JsonMappingException.wrapWithPath(JsonMappingException.java:218) > at > org.codehaus.jackson.map.JsonMappingException.wrapWithPath(JsonMappingException.java:197) > at > org.codehaus.jackson.map.ser.std.SerializerBase.wrapAndThrow(SerializerBase.java:166) > at > org.codehaus.jackson.map.ser.std.StdContainerSerializers$IndexedListSerializer.serializeContents(StdContainerSerializers.java:127) > at > org.codehaus.jackson.map.ser.std.StdContainerSerializers$IndexedListSerializer.serializeContents(StdContainerSerializers.java:71) > at > org.codehaus.jackson.map.ser.std.AsArraySerializerBase.serialize(AsArraySerializerBase.java:86) > at > org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446) > at > org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150) > at > org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112) > at > org.codehaus.jackson.map.ser.std.StdContainerSerializers$IndexedListSerializer.serializeContents(StdContainerSerializers.java:122) > at > org.codehaus.jackson.map.ser.std.StdContainerSerializers$IndexedListSerializer.serializeContents(StdContainerSerializers.java:71) > at > org.codehaus.jackson.map.ser.std.AsArraySerializerBase.serialize(AsArraySerializerBase.java:86) > at > org.codehaus.jackson.map.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:446) > at > org.codehaus.jackson.map.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:150) > at > org.codehaus.jackson.map.ser.BeanSerializer.serialize(BeanSerializer.java:112) > at > org.codehaus.jackson.map.ser.StdSerializerProvider._serializeValue(StdSerializerProvider.java:610) > at > org.codehaus.jackson.map.ser.StdSerializerProvider.serializeValue(StdSerializerProvider.java:256) > at > org.codehaus.jackson.map.ObjectMapper._configAndWriteValue(ObjectMapper.java:2575) > at > org.codehaus.jackson.map.ObjectMapper.writeValueAsString(ObjectMapper.java:2097) > at > org.apache.hadoop.yarn.service.utils.JsonSerDeser.toJson(JsonSerDeser.java:249) > at > org.apache.hadoop.yarn.service.ClientAMService.getStatus(ClientAMService.java:125) > at > org.apache.hadoop.yarn.service.impl.pb.service.ClientAMProtocolPBServiceImpl.getStatus(ClientAMProtocolPBServiceImpl.java:59) > at > org.apache.hadoop.yarn.proto.ClientAMProtocol$ClientAMProtocolService$2.callBlockingMethod(ClientAMProtocol.java:6159) > at > org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call(ProtobufRpcEngine.java:524) > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1025) > at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:876) > at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:822) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at > org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730) > at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2682) > Caused by: java.lang.IndexOutOfBoundsException: Index: 11, Size: 11 > at java.util.ArrayList.rangeCheck(ArrayList.java:659) > at java.util.ArrayList.get(ArrayList.java:435) > at > org.codehaus.jackson.map.ser.std.StdContainerSerializers$IndexedListSerializer.serializeContents(StdContainerSerializers.java:106) > ... 27 more > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org