[ https://issues.apache.org/jira/browse/YARN-6006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15750717#comment-15750717 ]
Shen Yinjie commented on YARN-6006: ----------------------------------- refer to code. {code} private void writeVersion() throws IOException { DataOutputStream out = this.writer.prepareAppendKey(-1); VERSION_KEY.write(out); out.close(); out = this.writer.prepareAppendValue(-1); out.writeInt(VERSION); out.close(); } {code} {{DataOutputStream out}} may cannot be closed while exception occurs.so need to add {{finally}} module to ensure stream closed.. > Log aggregation causes nodemanager OOM > -------------------------------------- > > Key: YARN-6006 > URL: https://issues.apache.org/jira/browse/YARN-6006 > Project: Hadoop YARN > Issue Type: Bug > Components: nodemanager > Affects Versions: 2.6.0 > Reporter: Shen Yinjie > Attachments: e.png > > > log aggregation is enabled, nodemanager died with oom exception. exception as > sreenshot. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org