Jakub created LOG4J2-3028:
-----------------------------

             Summary: OutputStreamManager does not clear buffer on exception
                 Key: LOG4J2-3028
                 URL: https://issues.apache.org/jira/browse/LOG4J2-3028
             Project: Log4j 2
          Issue Type: Bug
          Components: Appenders
            Reporter: Jakub


I have noticed that OutputStreamManager#flushBuffer does not clear the buffer 
if #writeToDestination throws an exception. This does not lead to data 
corruption, but in case of a #flush call when the buffer isn't full (which can 
happen at the end of a batch when e.g. using AsyncLogger), it will mean that 
only partial capacity of the buffer will be available until the next successful 
flush.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to