[
https://issues.apache.org/jira/browse/NIFI-2383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15426980#comment-15426980
]
n h commented on NIFI-2383:
---------------------------
User defined configuration is the best approach. Metadata approach is not
reliable. For example there are many filesystems that do not store creation
timestamp (including ext2, ext3).
If folder has so many files, listfile and getfile keep browsing each iteration.
with slow io, it is a very resource consuming process.
Is it possible to add a "watching" service ? so fetch file could get file list
from this background monitoring facility.
> ListFile does not detect new files
> ----------------------------------
>
> Key: NIFI-2383
> URL: https://issues.apache.org/jira/browse/NIFI-2383
> Project: Apache NiFi
> Issue Type: Improvement
> Components: Extensions
> Reporter: n h
> Labels: ListFile
> Fix For: 0.7.1
>
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)