NIFI-6025: Include Processor 'scheduled state' (i.e., Enabled or Disa…#3546
NIFI-6025: Include Processor 'scheduled state' (i.e., Enabled or Disa…#3546markap14 wants to merge 2 commits intoapache:masterfrom
Conversation
|
Will review... |
|
@markap14 If I only changed the scheduled state to disabled, it does not show as a local change. I expected that disabling a processor in my flow would be recognized as a local change. It was not. Once I made another change, I was able to save a new revision. Upon import of that revision that processor was correctly disabled. |
|
@markap14 it seems like the scheduled state only gets applied if some other change is also made to the component which triggers the update. Example:
When stepping through in the debugger it never enters the updateProcessor method for proc1. The only reason I can think is because it wasn't considered an affected component b/c nothing in the flow diff showed proc1. This probably ties back into Matt's question because if we start adding schedule state into the flow diff then it will become a local change by default, and then we have to decide if we want to add the code to filter it out on NiFi side. |
|
@bbende I think you and @mcgilman are saying the same thing. That was my intent, but I don't have a strong preference whether or not to consider that a local change, one way or the other. But given that you both were surprised by the behavior, I will update the PR so that enabling or disabling the component will be considered a local change. Thanks. |
|
OK I pushed an update to the PR. However, since we are changing the comparison logic, that has to be done in the nifi-registry project, so this is now blocked by NIFIREG-294. |
…bled) in the VersionedProcessor when pushing to Flow Registry and take into account when updating flows on the NiFi side
|
+1 Tested the latest commit and it resolved the issue I described above. Will merge this right after next registry release. |
…bled) in the VersionedProcessor when pushing to Flow Registry and take into account when updating flows on the NiFi side NIFI-6025: Include difference in Scheduled State as a Local Flow Difference This closes apache#3546. Signed-off-by: Bryan Bende <bbende@apache.org>
…bled) in the VersionedProcessor when pushing to Flow Registry and take into account when updating flows on the NiFi side NIFI-6025: Include difference in Scheduled State as a Local Flow Difference This closes apache#3546. Signed-off-by: Bryan Bende <bbende@apache.org>
…bled) in the VersionedProcessor when pushing to Flow Registry and take into account when updating flows on the NiFi side
Thank you for submitting a contribution to Apache NiFi.
Please provide a short description of the PR here:
Description of PR
Enables X functionality; fixes bug NIFI-YYYY.
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? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not
squashor use--forcewhen pushing to allow for clean monitoring of changes.For code changes:
mvn -Pcontrib-check clean installat the rootnififolder?LICENSEfile, including the mainLICENSEfile undernifi-assembly?NOTICEfile, including the mainNOTICEfile found undernifi-assembly?.displayNamein addition to .name (programmatic access) for each of the new properties?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.