You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mark Payne (Jira)" <ji...@apache.org> on 2022/01/06 21:33:00 UTC

[jira] [Created] (NIFI-9549) NonFlushableOutputStream should override all write() methods

Mark Payne created NIFI-9549:
--------------------------------

             Summary: NonFlushableOutputStream should override all write() methods
                 Key: NIFI-9549
                 URL: https://issues.apache.org/jira/browse/NIFI-9549
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
            Reporter: Mark Payne
            Assignee: Mark Payne


The {{NonFlushableOutputStream}} that is used when {{ProcessSession.append}} is called extends from {{FilterOutputStream}} but does not override the {{write}} methods. As a result, calls to {{NonFlushableOutputStream.write(byte[])}} or {{NonFlushableOutputStream.write(byte[], int, int)}} will not delegate those calls to the underlying {{OutputStream}} but will instead iterate over every byte in the given array calling {{OutputStream.write(int)}} for each byte individually, which is inefficient.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)