hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Wang (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (YARN-4818) AggregatedLogFormat.LogValue.write() incorrectly truncates files
Date Tue, 18 Oct 2016 21:57:58 GMT

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

Andrew Wang updated YARN-4818:
------------------------------
    Fix Version/s:     (was: 2.8.0)

> AggregatedLogFormat.LogValue.write() incorrectly truncates files
> ----------------------------------------------------------------
>
>                 Key: YARN-4818
>                 URL: https://issues.apache.org/jira/browse/YARN-4818
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: nodemanager
>    Affects Versions: 2.8.0
>            Reporter: Brook Zhou
>            Assignee: Brook Zhou
>              Labels: log-aggregation
>         Attachments: YARN-4818-v0.patch
>
>
> AggregatedLogFormat.LogValue.write() currently has a bug where it only writes in blocks
of the buffer size (65535). This is because FileInputStream.read(byte[] buf) returns -1 if
there are less than buf.length bytes remaining. In cases where the file size is not an exact
multiple of 65535 bytes, the remaining bytes are truncated.



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