Bryan Bende created NIFI-12330:
----------------------------------
Summary: 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
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)