Skip to content

NIFI-15932: Implemented ability to migrate a Versioned flow's Assets …#11240

Draft
markap14 wants to merge 4 commits into
apache:mainfrom
markap14:nifi-versioned-flow-connector-migration
Draft

NIFI-15932: Implemented ability to migrate a Versioned flow's Assets …#11240
markap14 wants to merge 4 commits into
apache:mainfrom
markap14:nifi-versioned-flow-connector-migration

Conversation

@markap14
Copy link
Copy Markdown
Contributor

…and config to a new Connector

Summary

NIFI-00000

Tracking

Please complete the following tracking steps prior to pull request creation.

Issue Tracking

Pull Request Tracking

  • Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
  • Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000
  • Pull request contains commits signed with a registered key indicating Verified status

Pull Request Formatting

  • Pull Request based on current revision of the main branch
  • Pull Request refers to a feature branch with one commit containing changes

Verification

Please indicate the verification steps performed prior to pull request creation.

Build

  • Build completed using ./mvnw clean install -P contrib-check
    • JDK 21
    • JDK 25

Licensing

  • New dependencies are compatible with the Apache License 2.0 according to the License Policy
  • New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

  • Documentation formatting appears as expected in rendered files

markap14 added 3 commits May 28, 2026 11:18
…0-SNAPSHOT

Adds the MIGRATE allowable action to StandardConnectorNode, returning a
reasonNotAllowed when the connector is not stopped or does not implement
MigratableConnector. Wires MIGRATE through the ConnectorActionName union
in the frontend type definitions.

Updates StandardConnectorMigrationManager, StandardNiFiServiceFacade, and
StandardConnectorDAO to pass ConnectorSyncMode.LOCAL_ONLY when looking up
connectors via ConnectorRepository, matching the convention introduced on
main when the sync-mode parameter was added.

Adds stub overrides of Connector.getActiveFlow(FlowContext) to every
concrete Connector implementation in the source tree (mock connectors,
framework-core test connectors, system-test connectors, KafkaToS3, and
DummyConnector), as required by the abstract method added in
nifi-api 2.9.0-SNAPSHOT.

Converts between ScheduledState and VersionedConnectorState at the
boundary between the framework-side ConnectorSyncResult / ConnectorSync
Directive / ConnectorConfigurationProvider (still ScheduledState) and
VersionedConnector (now VersionedConnectorState).
@markap14 markap14 force-pushed the nifi-versioned-flow-connector-migration branch from 935524f to fec0aba Compare May 28, 2026 16:37
…roach outlined in NIFI-15988; Bug fixes; when returning list of Process Groups that can be used for migration, include those that the Connector deems as acceptable but that are not in the desirable state and indicate why they are not currently available (e.g., flowfiles queued, processors, running, etc.)
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.

1 participant