[
https://issues.apache.org/jira/browse/NIFI-8020?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17234087#comment-17234087
]
ASF subversion and git services commented on NIFI-8020:
-------------------------------------------------------
Commit 4aaec5aa3878f1abd3c2b98ba7659431f0a8c9c3 in nifi's branch
refs/heads/main from Tamas Palfy
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=4aaec5a ]
NIFI-8020 Make sure TailFile doesn't leave FileChannel open when handling NUL
characters
Signed-off-by: Pierre Villard <[email protected]>
This closes #4671.
> TailFile can leave FileChannel open when handling NUL characters
> ----------------------------------------------------------------
>
> Key: NIFI-8020
> URL: https://issues.apache.org/jira/browse/NIFI-8020
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Tamas Palfy
> Assignee: Tamas Palfy
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> In TailFile when REREAD_ON_NUL is set to 'true' and a NUL character is
> encountered, the processor aborts all processing and yields to try again
> later.
> However the opened FileChannel is not stored in the states. Because of this
> the reader is not cleaned up later.
> On Windows this prevents from deleting the tailed file. (On linux it seems
> the file still can be deleted. Leaving open the FileChannel is not good
> nonetheless.)
> Fix: Store the reader in the states.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)