You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Tamas Palfy (Jira)" <ji...@apache.org> on 2020/11/17 19:06:00 UTC
[jira] [Created] (NIFI-8020) TailFile can leave FileChannel open
when handling NUL characters
Tamas Palfy created NIFI-8020:
---------------------------------
Summary: 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
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)