[ 
https://issues.apache.org/jira/browse/NIFI-7469?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17154716#comment-17154716
 ] 

Mark Payne commented on NIFI-7469:
----------------------------------

Thanks for reporting this [~Steto84]. I updated the title of the Jira to be a 
bit more encompassing.
The problem occurs any time a Processor receives an incoming FlowFile that is 0 
bytes, then modifies the content of a FlowFile by writing zero bytes. In this 
case, the framework gets confused because both versions of the content appear 
to be the same, but they are not.

> Processors that write zero-byte content may cause Content Repository Cleanup 
> to fail
> ------------------------------------------------------------------------------------
>
>                 Key: NIFI-7469
>                 URL: https://issues.apache.org/jira/browse/NIFI-7469
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.10.0, 1.11.0, 1.11.1, 1.11.4
>         Environment: Windows 10, ubuntu 18.04
>            Reporter: Stefano Piana
>            Priority: Major
>         Attachments: ReplaceTextBug.xml
>
>
> Trying to replace an empty flowfile with and empty value may cause the 
> content repository 
> to accumulate and not being correctly cleaned up until the next NiFi restart.
> this behaviour has been observed on nifi 1.10+
> to reproduce the problem just generate a flowfile that has some content, then 
> replace the content with the ReplaceText processor setting it to always 
> replace and set the replacement to empty string. Copy the ReplaceText 
> processor and try replacing the content with an empty string again, then just 
> use any processor to drain the flowfiles. This will cause the content 
> repository to accumulate and stop being correctly cleaned up.
> here attached a simple flow that reproduces the problem.
>  



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

Reply via email to