[
https://issues.apache.org/jira/browse/NIFI-2383?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15426409#comment-15426409
]
Mark Payne commented on NIFI-2383:
----------------------------------
There was a discussion about this on the mailing list a while back. We should
really have a configurable way for the user to specify how "new files" should
be detected. The current approach does indeed leave out any file that is copied
into the directory if it is copied in a way that preserves the Last Modified
timestamp. However, we went with this approach for the initial solution because
it is extremely efficient and it allows us to avoid storing very much
information. If we were to store enough information to pick up a second copy of
that file, we would have to store information about each file that is in the
directory, etc., and that can be very prohibitive in a clustered environment.
So offering the ability to let the user configure which approach makes sense
for them is a win-win.
That being said, though, I don't think this is an improvement that we need to
be scheduling for a 1.0.0 release. We are closing in on the release, and I
suspect within the next couple of days we will have an RC out, so I would avoid
putting anything on the 1.0.0 release unless it is of a critical bug-fix
nature. I'll remove the fix version for now. If someone wants to pick this up
though and supply a patch we can figure out at that point what version it
should belong in.
> ListFile does not detect new files
> ----------------------------------
>
> Key: NIFI-2383
> URL: https://issues.apache.org/jira/browse/NIFI-2383
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: n h
> Labels: Core, ListFile
> Fix For: 1.0.0, 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)