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

ListFile does not detect new files

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.7.0
    • None
    • Extensions

    Description

      ListFile does not detect directory updates correctly. It seems it only check for file name and modified date.
      Using a 2 processors flow: ListFile -> FetchFile, and configure FetchFile to finally delete files. Following scenario fails:
      1. Create file1.txt somewhere outside of watching directory.
      2. Copy file1.txt to watching directory.
      3. Wait for FetchFile to fetch and delete file1.txt
      4. Copy file1.txt again to watching directory.

      In the 2nd time ListFile does not detect "new copy of the same file file1.txt" because file name and modified time are the same. Only creation time is updated.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nadih n h
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: