Mark Payne created NIFI-9182:
--------------------------------

             Summary: ProcessSession flushes every time append() is called
                 Key: NIFI-9182
                 URL: https://issues.apache.org/jira/browse/NIFI-9182
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
            Reporter: Mark Payne
            Assignee: Mark Payne


When StandardProcessSession.append(FlowFile, OutputStreamCallback) gets called, 
we create a DisableOnCloseOutputStream and then provide that to the 
OutputStream. But we use try-with-resources. So when the callback completes, 
the OutputStream is closed, which calls flush(). This means that if we have 
processor that calls append() many times, perhaps once per line of text, we end 
up flushing for every line of text.



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

Reply via email to