Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-3583

PutFile should attempt to replace files atomically

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Trivial
    • Resolution: Unresolved
    • 0.7.1, 1.1.1
    • None
    • Extensions
    • None
    • On Windows, NIO2's Files.move operation may not allow atomic file replacement, in which case it would have to fall back to the existing method.

    Description

      A PutFile configured with the "replace" conflict resolution strategy will first delete any existing file and then move the new temporary file into place. This causes there to be a small period of time where the file does not exist at all. This could cause problems with other processes relying on this file to always exist.

      Attachments

        Activity

          People

            ggwizdz1 Gray Gwizdz
            genekhart Eugene Hart
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: