hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Lowe (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-163) Retrieving container log via NM webapp can hang with multibyte characters in log
Date Wed, 17 Oct 2012 01:26:03 GMT

     [ https://issues.apache.org/jira/browse/YARN-163?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Jason Lowe updated YARN-163:
----------------------------

    Attachment: YARN-163.patch

Patch to skip bytes instead of characters.  Still needs a unit test, but I manually tested
it on a job with lots of multibyte characters in its logs and it fixes the issue.
                
> Retrieving container log via NM webapp can hang with multibyte characters in log
> --------------------------------------------------------------------------------
>
>                 Key: YARN-163
>                 URL: https://issues.apache.org/jira/browse/YARN-163
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>    Affects Versions: 0.23.3, 2.0.0-alpha
>            Reporter: Jason Lowe
>            Assignee: Jason Lowe
>         Attachments: YARN-163.patch
>
>
> ContainerLogsBlock.printLogs currently assumes that skipping N bytes in the log file
is the same as skipping N characters, but that is not true when the log contains multibyte
characters.  This can cause the loop that skips a portion of the log to try to skip past the
end of the file and loop forever (or until Jetty kills the worker thread).

--
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

Mime
View raw message