Skip to content

NIFI-3607 Allow multi files mode with fixed names#1608

Closed
pvillard31 wants to merge 1 commit intoapache:masterfrom
pvillard31:NIFI-3607
Closed

NIFI-3607 Allow multi files mode with fixed names#1608
pvillard31 wants to merge 1 commit intoapache:masterfrom
pvillard31:NIFI-3607

Conversation

@pvillard31
Copy link
Contributor

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:

  • Is there a JIRA ticket associated with this PR? Is it referenced
    in the commit message?

  • 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.

  • Has your PR been rebased against the latest commit within the target branch (typically master)?

  • Is your initial contribution a single, squashed commit?

For code changes:

  • Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
  • 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.

@trixpan
Copy link
Contributor

trixpan commented Apr 5, 2017

will review

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.ScheduledExecutorService;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasn't familiar with this. very handy!

@trixpan
Copy link
Contributor

trixpan commented Apr 10, 2017

Shouldn't static final AllowableValue MODE_MULTIFILE ... be updated to reflect new behavior?

@pvillard31
Copy link
Contributor Author

Sorry for the late answer @trixpan, just coming back from holidays. You're right, I should update the description, will do it later today. Thanks!

@pvillard31
Copy link
Contributor Author

Just pushed a commit to address your comment let me know if you want me to squash the PR.

@trixpan
Copy link
Contributor

trixpan commented Apr 25, 2017

@pvillard31 sorry for this but it seems PR is now in conflict with master. Would you mind rebasing?
Cheers

@pvillard31
Copy link
Contributor Author

No problem at all @trixpan, I rebased against master.

@asfgit asfgit closed this in 7df5c2d Apr 30, 2017
@trixpan
Copy link
Contributor

trixpan commented Apr 30, 2017

@pvillard31 thanks for the rebase. LGTM. Merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants