NIFI-10976 Add Previous Cluster State Provider configuration#7235
Merged
Conversation
- Added methods to enumerate Stored Component Identifiers on State Provider interface and implementations - Added nifi.state.management.provider.cluster.previous to nifi.properties - Updated State Manager Provider to restore Cluster State from Previous Cluster Provider - Updated Configuring State Providers documentation for new property
bbende
approved these changes
May 10, 2023
Contributor
bbende
left a comment
There was a problem hiding this comment.
Code looks good and was able to verify using this new property to migrate state from a previous ZK to a new ZK, and everything worked as described.
iadamcsik
pushed a commit
to iadamcsik/nifi
that referenced
this pull request
Oct 22, 2025
- CDPDFX-6285: Passing through flow designer id during component creation (apache#106) - CDPDFX-7171 Correcting resolution of VCI for scheduled state changes (apache#108) - CDPDFX-7192 Add lastModifier field to FlowChangeEvent, set lastModifier when publishing state change events (apache#109) - CDPDFX-6285 Use flow designer id in flow control event handler - NIFI-10976 Added Previous Cluster State Provider configuration (apache#7235) - Added methods to enumerate Stored Component Identifiers on State Provider interface and implementations - Added nifi.state.management.provider.cluster.previous to nifi.properties - Updated State Manager Provider to restore Cluster State from Previous Cluster Provider - Updated Configuring State Providers documentation for new property
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
NIFI-10976 Adds a Previous Cluster State Provider to support migrating from one Cluster State Provider implementation to another.
The new Previous Cluster Provider property enables conditional transfer of Cluster State from a previous Cluster State Provider to the configured Cluster State Provider. This approaches supports migration scenarios such as moving from ZooKeeper to Kubernetes ConfigMaps or Redis. The implementation is a one-way operation that copies from the Previous Provider to the Current Provider when the Current Provider does not have any state information. After the initial state transfer, the framework ignores the Previous Provider when the Current Provider contains stored informaiton.
Changes include new methods on the
StateProviderinterface to support enumeration of stored Component Identifiers. The default interface methods indicate that enumeration is not supported, so State Provider implementations must implement both new methods to support transferring state from a previous provider.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