[
https://issues.apache.org/jira/browse/NIFI-6832?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16965076#comment-16965076
]
ASF subversion and git services commented on NIFI-6832:
-------------------------------------------------------
Commit 0b3a60ae3e8af9d4079c3e177dfbd568c93f6cfe in nifi's branch
refs/heads/master from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=0b3a60a ]
NIFI-6832: When receiving a 0-byte FlowFile via site-to-site, avoid writing to
the FlowFile at all
> Site-to-Site should not create a Content Claim for 0-byte FlowFiles
> -------------------------------------------------------------------
>
> Key: NIFI-6832
> URL: https://issues.apache.org/jira/browse/NIFI-6832
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Mark Payne
> Assignee: Mark Payne
> Priority: Major
> Fix For: 1.11.0
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> When FlowFiles are received via Site-to-Site, it creates a FlowFile and then
> writes the content from the InputStream to the FlowFile. However, if the
> FlowFile is 0 bytes, it should avoid every calling `ProcessSession.write`.
> Doing so has the overhead of seeking to the appropriate place on disk to
> begin writing, but more importantly it ties the FlowFile to the underlying
> ResourceClaim. As a result, we have a 0 byte FlowFile that can prevent a
> (potentially large) Content Claim from being cleaned up, until the 0 byte
> FlowFile has been dropped.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)