NIFI-4028 - fix cache update when Wait releases flow files#2055
NIFI-4028 - fix cache update when Wait releases flow files#2055pvillard31 wants to merge 2 commits intoapache:masterfrom
Conversation
|
Hi @pvillard31 , thanks for tackling this! Although the proposed change can keep a signal when there are counts remaining, I found that:
So, I'd like to propose different approach, that refactors and consolidates current implementation so that Wait processor has less different execution paths in its code. That would be more understandable for developers and users. Would you take a look at this commit? This branch has 1 more commit based on this PR: |
- Consolidated implementation for the cases of releasableFlowCount is 1 or more, in order to reduce complexity and behavior differences - Added 'consumed' counter when total counter is used to release incoming FlowFiles - Fixed method name typo, releaseCandidates
|
Thanks @ijokarumawak for your review and work, that's much cleaner with your commit. I just added it to this PR. |
|
@pvillard31 Local contrib check passed without issue, and tested with different flows. LGTM +1, merging to master. Thanks! |
NIFI-4028: Refactored Wait processor. - Consolidated implementation for the cases of releasableFlowCount is 1 or more, in order to reduce complexity and behavior differences - Added 'consumed' counter when total counter is used to release incoming FlowFiles - Fixed method name typo, releaseCandidates This closes apache#2055. Signed-off-by: Koji Kawamura <ijokarumawak@apache.org>
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:
For documentation related 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.