NIFI-10096 Correct nested inherited Parameter Context loading#6114
NIFI-10096 Correct nested inherited Parameter Context loading#6114exceptionfactory wants to merge 1 commit intoapache:mainfrom
Conversation
|
@exceptionfactory so gist is we need to load all param contexts found then lookup referenced ones so that we dont attempt to reference something before it has been loaded? |
|
@joewitt Yes, prior to this PR, the Since NiFi can load Child Context B before Parent Context A, the method would log a warning. The changes implemented construct a map of available context names from the Versioned Flow so that the references are available regardless of when they are added to the |
gresockj
left a comment
There was a problem hiding this comment.
Thanks for the fix, @exceptionfactory! The code looks sensible to me, and I tested several scenarios, including the one described in the JIRA issue, as well as exporting and loading a process group with deleted parameter contexts. Everything appears to work as designed.
Will merge this.
Signed-off-by: Joe Gresock <jgresock@gmail.com> This closes #6114.
Summary
NIFI-10096 Corrects loading of inherited Parameter Contexts to avoiding warnings and missing inherited Parameter Context references.
Based on the order of persisted Parameter Contexts, NiFi can load a child context before a parent context, resulting in warnings and missing Parameter Context inheritance references. Building and referencing a map of available Parameter Context names to available Parameter Contexts allows the
VersionedFlowSynchronizerto locate inherited Parameter Contexts regardless of persisted order.Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000Pull Request Formatting
mainbranchVerification
Please indicate the verification steps performed prior to pull request creation.
Build
mvn clean install -P contrib-checkLicensing
LICENSEandNOTICEfilesDocumentation