Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NIFI-14213 Fixed for Inherited Parameter Context Not Retained When Up… #9714

Closed
wants to merge 2 commits into from

Conversation

2020555642rahul
Copy link
Contributor

This PR addresses an issue where inherited parameter contexts were not properly attached when upgrading a versioned process group. Previously, upgrading a flow would create the new inherited parameter context but fail to link it to the parameter context, causing missing parameter references. This fix ensures that inherited parameter contexts are correctly retained and updated during flow upgrades.

Issue link: https://issues.apache.org/jira/browse/NIFI-14213

@2020555642rahul
Copy link
Contributor Author

@pvillard31 I have updated the PR for version 2.0. Could you please review it?

Copy link
Contributor

@pvillard31 pvillard31 left a comment

Choose a reason for hiding this comment

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

Checkstyle issue:

Warning:  src/main/java/org/apache/nifi/flow/synchronization/StandardVersionedComponentSynchronizer.java:[2338,151] (whitespace) WhitespaceAround: '{' is not preceded with whitespace.

@2020555642rahul
Copy link
Contributor Author

@pvillard31, I have updated the CheckStyle fix. Could you please review it?

@2020555642rahul
Copy link
Contributor Author

Hi @pvillard31 any update ?

Copy link
Contributor

@pvillard31 pvillard31 left a comment

Choose a reason for hiding this comment

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

The change makes sense as we could very well have version 1 with 1 inherited parameter context, and version 2 with 2 inherited parameter contexts. Tested the change following the steps described in the JIRA. I'm a +1, merging. Thanks @2020555642rahul.

@pvillard31
Copy link
Contributor

pvillard31 commented Feb 17, 2025

Forgot to amend the commit to add the magic words... closing manually.
Merged in main: 11c2151

@pvillard31 pvillard31 closed this Feb 17, 2025
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