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

Junping Du commented on YARN-5915:
----------------------------------

bq. Is the output stream unbuffered such that the write is acting like a flush?
That's also what I am suspecting. Shall we assume the behavior of buffered or 
unbuffered output stream be consistent in our case? The _flushBuffer() is hard 
to do so. May be good to buffer things at JsonGenerator?
{noformat}
    protected final void _flushBuffer() throws IOException
    {
        int len = _outputTail - _outputHead;
        if (len > 0) {
            int offset = _outputHead;
            _outputTail = _outputHead = 0;
            _writer.write(_outputBuffer, offset, len);
        }
    }
{noformat}

> ATS 1.5 FileSystemTimelineWriter causes flush() to be called after every 
> event write
> ------------------------------------------------------------------------------------
>
>                 Key: YARN-5915
>                 URL: https://issues.apache.org/jira/browse/YARN-5915
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: timelineserver
>    Affects Versions: 3.0.0-alpha1
>            Reporter: Atul Sikaria
>            Assignee: Atul Sikaria
>         Attachments: YARN-5915.01.patch
>
>




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

Reply via email to