[ 
https://issues.apache.org/jira/browse/NIFI-13309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17850992#comment-17850992
 ] 

ASF subversion and git services commented on NIFI-13309:
--------------------------------------------------------

Commit c12842fc83d0d68fa8091f639f6df7d259d0d0c0 in nifi's branch 
refs/heads/main from Ferenc Erdei
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=c12842fc83 ]

NIFI-13309 Lookup compatible bundles even if previous flow was empty

Signed-off-by: Ferenc Kis <briansolo1...@gmail.com>

This closes #8888.


> MiNiFi flow update fails to lookup compatible bundles
> -----------------------------------------------------
>
>                 Key: NIFI-13309
>                 URL: https://issues.apache.org/jira/browse/NIFI-13309
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: MiNiFi
>    Affects Versions: 2.0.0-M1, 2.0.0-M2, 2.0.0-M3
>            Reporter: Ferenc Erdei
>            Assignee: Ferenc Erdei
>            Priority: Minor
>              Labels: minifi-java
>             Fix For: 2.0.0-M4
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> h3. Issue
> Publishing a MiNiFi flow that was designed with not the same manifest version 
> as the current MiNiFi runtime use causes flow update failure. 
> Steps to reproduce:
>  * Design a Flow with the previous NiFi version
>  * Publish that flow through C2 Server
> h3. Expected behaviour
> The flow should be loaded with the compatible bundles.
> h3. Actual behaviour
> Exceptions in logs:
> {noformat}
> 2024-05-29 11:43:43,872 INFO [pool-15-thread-1] 
> o.a.n.f.s.StandardVersionedComponentSynchronizer Added 
> GhostProcessor[id=f4d7586c-d575-4255-bbe1-c0f7b129a7ea] to 
> StandardProcessGroup[identifier=7072239a-c047-4d5e-8e68-cd2cbc651343,name=root]
> 2024-05-29 11:43:43,872 ERROR [pool-15-thread-1] 
> o.a.nifi.controller.ExtensionBuilder Could not create Processor of type 
> org.apache.nifi.processors.standard.GenerateFlowFile for ID 
> d7c7463f-beaf-4122-b7af-581a41740512 due to: 
> org.apache.nifi.processors.standard.GenerateFlowFile; creating "Ghost" 
> implementation{noformat}
> And Flow is reverted to the previous flow.
> h3. Root cause
> We have a condition in 
> [https://github.com/apache/nifi/blob/main/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/serialization/VersionedFlowSynchronizer.java#L170]
>  for the existing flow, but we should have a null check for the proposed, and 
> map the compatible bundles even if the old flow was empty.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to