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

Akira Ajisaka commented on YARN-6288:
-------------------------------------

If an exception occurs when the writer is not ready or closed, 
{{writer.close()}} is called in the finally clause and throws 
IllegalStateException instead of the original exception. That way we cannot 
detect what is the original exception. I'd like to catch the original exception 
and log it.

> Refactor AppLogAggregatorImpl#uploadLogsForContainers
> -----------------------------------------------------
>
>                 Key: YARN-6288
>                 URL: https://issues.apache.org/jira/browse/YARN-6288
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Akira Ajisaka
>            Priority: Minor
>              Labels: supportability
>
> In AppLogAggregatorImpl.java, if an exception occurs in writing container log 
> to remote filesystem, the exception is not caught and ignored.
> https://github.com/apache/hadoop/blob/f59e36b4ce71d3019ab91b136b6d7646316954e7/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/containermanager/logaggregation/AppLogAggregatorImpl.java#L398



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to