[
https://issues.apache.org/jira/browse/NIFI-3607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15934940#comment-15934940
]
ASF GitHub Bot commented on NIFI-3607:
--------------------------------------
GitHub user pvillard31 opened a pull request:
https://github.com/apache/nifi/pull/1608
NIFI-3607 Allow multi files mode with fixed names
Thank you for submitting a contribution to Apache NiFi.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
### For all changes:
- [X] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?
- [X] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number
you are trying to resolve? Pay particular attention to the hyphen "-" character.
- [X] Has your PR been rebased against the latest commit within the target
branch (typically master)?
- [X] Is your initial contribution a single, squashed commit?
### For code changes:
- [X] Have you ensured that the full suite of tests is executed via mvn
-Pcontrib-check clean install at the root nifi folder?
- [X] Have you written or updated unit tests to verify your changes?
### Note:
Please ensure that once the PR is submitted, you check travis-ci for build
issues and submit an update to your PR as soon as possible.
=============================================
I slightly updated the test framework to allow a run schedule duration
setting. It allows me to schedule multiple calls to the ``onTrigger`` method
with a given duration between each call so that I can check what happens in
case of events occurring while the processor is running (without calling
``onScheduled``). With this new parameter, I added a unit test where a new file
is created while the processor is running to check that the processor picks up
the new file as expected.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/pvillard31/nifi NIFI-3607
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/nifi/pull/1608.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1608
----
commit 1e3a54c0330d11594efe27f912382eeef0fa718a
Author: Pierre Villard <[email protected]>
Date: 2017-03-20T14:28:27Z
NIFI-3607 Allow multi files mode with fixed names
----
> TailFile does not notice new files in folder
> --------------------------------------------
>
> Key: NIFI-3607
> URL: https://issues.apache.org/jira/browse/NIFI-3607
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.1.1
> Environment: Fedora 25
> Reporter: Uwe Geercken
> Assignee: Pierre Villard
> Priority: Critical
>
> I have configured the TailFile processor to read multiple (small) files from
> a folder.
> This works, but if more files are created in the folder, the processor does
> not pick them up, even though the "Lookup frequency" is set (10 minutes).
> If I stop and start the processor, it correctly picks up the new files.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)