[
https://issues.apache.org/jira/browse/NIFI-9182?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Handermann resolved NIFI-9182.
------------------------------------
Fix Version/s: 1.15.0
Resolution: Fixed
> 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
> Priority: Major
> Fix For: 1.15.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> 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)