[
https://issues.apache.org/jira/browse/NIFI-12330?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17783805#comment-17783805
]
ASF subversion and git services commented on NIFI-12330:
--------------------------------------------------------
Commit 8b0abd45dfbd3da40383c76f85285510865c4da2 in nifi's branch
refs/heads/main from markap14
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=8b0abd45df ]
NIFI-12330: When synchronizing flow, pause component scheduling until after
property migration has completed (#7994)
> Failure to migrate properties on controller service
> ---------------------------------------------------
>
> Key: NIFI-12330
> URL: https://issues.apache.org/jira/browse/NIFI-12330
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Bryan Bende
> Assignee: Mark Payne
> Priority: Critical
> Fix For: 2.0.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> While testing the PR forĀ
> [NIFI-12261|https://github.com/apache/nifi/pull/7991/files#top], I made a
> flow on 1.24.0-SNAPSHOT with GenerateFlowFile -> ConvertRecord ->
> LogAttribute, with all processors stopped. The ConvertRecord processors used
> an AvroReader and AvroWriter, which each in turn used a
> ConfluentSchemaRegistry service. All three services were enabled.
> I then copied the flow.json over to a build of the PR for NIFI-12261 which is
> based on 2.0.0-SNAPSHOT and during start up produced this error:
> {code:java}
> Caused by: java.lang.IllegalStateException: Cannot modify configuration of
> StandardControllerServiceNode[service=AvroReader[id=aac065cf-018b-1000-8c3a-6f1b13f96c34],
> name=AvroReader, active=true] because it is currently not disabled - it has
> a state of ENABLING. Please disable the Controller Service first.
> at
> org.apache.nifi.controller.service.StandardControllerServiceNode.verifyModifiable(StandardControllerServiceNode.java:357)
> at
> org.apache.nifi.controller.AbstractComponentNode.verifyCanUpdateProperties(AbstractComponentNode.java:362)
> at
> org.apache.nifi.controller.AbstractComponentNode.setProperties(AbstractComponentNode.java:272)
> at
> org.apache.nifi.controller.service.StandardControllerServiceNode.setProperties(StandardControllerServiceNode.java:236)
> at
> org.apache.nifi.controller.AbstractComponentNode.overwriteProperties(AbstractComponentNode.java:251)
> at
> org.apache.nifi.controller.service.StandardControllerServiceNode.migrateConfiguration(StandardControllerServiceNode.java:861)
> at
> org.apache.nifi.flow.synchronization.StandardVersionedComponentSynchronizer.synchronize(StandardVersionedComponentSynchronizer.java:259)
> at
> org.apache.nifi.groups.StandardProcessGroup.synchronizeFlow(StandardProcessGroup.java:3860)
> at
> org.apache.nifi.controller.serialization.VersionedFlowSynchronizer.synchronizeFlow(VersionedFlowSynchronizer.java:464)
> ... 43 common frames omitted {code}
> This was attempting to migrate the properties of the reader/writer which used
> schema access/write strategies that were being removed and replaced with new
> controller services.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)