You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Brook Zhou (JIRA)" <ji...@apache.org> on 2016/03/15 03:09:33 UTC

[jira] [Created] (YARN-4818) AggregatedLogFormat.LogValue writes only in blocks of buffer size

Brook Zhou created YARN-4818:
--------------------------------

             Summary: AggregatedLogFormat.LogValue writes only in blocks of buffer size
                 Key: YARN-4818
                 URL: https://issues.apache.org/jira/browse/YARN-4818
             Project: Hadoop YARN
          Issue Type: Bug
    Affects Versions: 2.8.0
            Reporter: Brook Zhou
            Assignee: Brook Zhou
             Fix For: 2.8.0


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 65535 bytes remaining. In cases where the file is less than 65535 bytes, 0 bytes are written.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)