You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Andrew Christianson (JIRA)" <ji...@apache.org> on 2018/03/16 14:27:00 UTC

[jira] [Created] (MINIFICPP-431) PutFile incorrectly attempts to atomically replace non-regular files atomically

Andrew Christianson created MINIFICPP-431:
---------------------------------------------

             Summary: PutFile incorrectly attempts to atomically replace non-regular files atomically
                 Key: MINIFICPP-431
                 URL: https://issues.apache.org/jira/browse/MINIFICPP-431
             Project: NiFi MiNiFi C++
          Issue Type: Bug
            Reporter: Andrew Christianson
            Assignee: Andrew Christianson


PutFile uses a temporary file and atomic rename() call to ensure that files are written atomically. While this is beneficial in most cases, it causes trouble when the output file is not a regular file (e.g. it is a FIFO file). The processor should stat the file and only attempt an atomic write if the destination does not exist or exists and is a regular file.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)