NIFI-15355 Refactor ConnectorRepository API for extension point#10857
Draft
kevdoran wants to merge 1 commit intoapache:NIFI-15258from
Draft
NIFI-15355 Refactor ConnectorRepository API for extension point#10857kevdoran wants to merge 1 commit intoapache:NIFI-15258from
kevdoran wants to merge 1 commit intoapache:NIFI-15258from
Conversation
- Move ConnectorRepository and ConnectorLifecycleManager interfaces to nifi-framework-api as clean extension points - Rename internal ConnectorRepository to ConnectorManager in nifi-framework-core-api - Add ConnectorUpdateRejectedException for 409 Conflict responses - Add support for external modification of connector configuration - Create FlowJsonConnectorRepository as default implementation - Add StandardConnectorLifecycleManager for lifecycle state management - Wire pluggable repositories into FlowController initialization
kevdoran
commented
Feb 4, 2026
|
|
||
| // Connector Repository properties | ||
| // Connector Manager properties | ||
| public static final String CONNECTOR_MANAGER_IMPLEMENTATION = "nifi.components.connectors.manager.implementation"; |
Contributor
Author
There was a problem hiding this comment.
- Remove
CONNECTOR_MANAGER_IMPLEMENTATIONas that is no longer intended to be configurable via properties
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-15355
This PR refactors the Connector API to create clean extension points for third-party implementations. The primary goal is to allow external developers to implement custom
ConnectorRepositoryandConnectorLifecycleManagerinstances without requiring changes to NiFi core.Motivation
The original
ConnectorRepositoryinterface innifi-framework-core-apiwas entangled with internal framework dependencies (likeFlowManager) that cannot be exposed as a stable public API. This refactoring creates a layered architecture where:nifi-framework-apiwith minimal, stable dependenciesnifi-framework-core-apiandnifi-framework-coreUpdated Internal Arch Diagram
Data Flow for Creating a Connector:
Data Flow for Updating a Connector:
Key Changes
New Public Extension Points (
nifi-framework-api)ConnectorRepositoryConnectorLifecycleManagerSecretsProviderPersistedConnectorRecordConnectorRepositoryContextConnectorLifecycleContextInternal Framework Changes
ConnectorRepositorytoConnectorManagerinnifi-framework-core-apiConnectorManagernow orchestrates between the pluggableConnectorRepositoryandConnectorLifecycleManagerFlowJsonConnectorRepositoryas the default implementation (embeds connectors inflow.json.gz)StandardConnectorLifecycleManageras the default lifecycle implementationExternal Modification Support
Third-party repositories can support external changes to connector configuration (e.g., files modified directly in S3 or records updated in a database):
supportsExternalModification()- indicates if external changes are supportedprepareForUpdate()/completeUpdate()- transactional update semantics allowing the repository to "vote" on updatesConnectorUpdateRejectedException- returns HTTP 409 Conflict when updates are rejectedConfiguration
Implementations are configurable via
nifi.properties:Issue Tracking
Pull Request Tracking
NIFI-00000NIFI-00000VerifiedstatusPull Request Formatting
mainbranch