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
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---