hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shen Yinjie (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (YARN-6006) Log aggregation causes nodemanager OOM
Date Thu, 15 Dec 2016 08:11:58 GMT

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

Shen Yinjie edited comment on YARN-6006 at 12/15/16 8:11 AM:
-------------------------------------------------------------

refer to the code in {{AggregatedLogFormat.java}}
{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..


was (Author: shenyinjie):
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: YARN-6006_1.patch, 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message