[ https://issues.apache.org/jira/browse/YARN-737?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13678789#comment-13678789 ]
Zhijie Shen commented on YARN-737: ---------------------------------- Search around the source code. It seems that the following exceptions can be unwrapped as well. TestLocalContainerAllocator {code} when(scheduler.allocate(isA(AllocateRequest.class))) .thenThrow(RPCUtil.getRemoteException(new IOException("forcefail"))); {code} ContainerManagerImpl {code} try { tokenIdentifier = BuilderUtils.newContainerTokenIdentifier(token); } catch (IOException e) { throw RPCUtil.getRemoteException(e); } {code} {code} } catch (IOException e) { throw RPCUtil.getRemoteException(e); } {code} MiniYARNCluster {code} } catch (YarnException ioe) { LOG.info("Exception in heartbeat from node " + request.getNodeStatus().getNodeId(), ioe); throw RPCUtil.getRemoteException(ioe); } {code} {code} } catch (YarnException ioe) { LOG.info("Exception in node registration from " + request.getNodeId().toString(), ioe); throw RPCUtil.getRemoteException(ioe); } {code} > Some Exceptions no longer need to be wrapped by YarnException and can be > directly thrown out after YARN-142 > ------------------------------------------------------------------------------------------------------------ > > Key: YARN-737 > URL: https://issues.apache.org/jira/browse/YARN-737 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Jian He > Assignee: Jian He > Attachments: YARN-737.1.patch, YARN-737.2.patch, YARN-737.3.patch, > YARN-737.4.patch > > -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira