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

David Handermann commented on NIFI-11570:
-----------------------------------------

Thanks for the additional discussion [~Nissim Shiman] and [~bbende].

Summarizing some direct conversation with [~Nissim Shiman], one option could be 
using the propertyDescriptors, but only populating sensitive dynamic property 
names and setting the sensitive flag. This would keep the size of flow.json 
scoped down, but potentially provide a way to persist the sensitive dynamic 
properties explicitly without having to change the model itself. I'm not sure 
offhand about the potential tradeoffs of such an approach.

Tagging [~markap14] for additional perspective as this is an important 
implementation to get right, and it is better to evaluate the options before 
getting to a pull request that could involve significant changes in direction.

> Processors have difficulty restoring dynamic properties when leaving ghost 
> mode
> -------------------------------------------------------------------------------
>
>                 Key: NIFI-11570
>                 URL: https://issues.apache.org/jira/browse/NIFI-11570
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.19.1
>            Reporter: Nissim Shiman
>            Assignee: Nissim Shiman
>            Priority: Major
>
> When a processor with non sensitive dynamic properties is started in ghost 
> mode due to its underlying nar being missing, it will have a difficult time 
> being restored even when its nar has been replaced.
> The dynamic properties will be identified as being sensitive and not able to 
> be accessed.
> So for example, if a dynamic property added to GenerateFlowFile and 
> nifi-standard-nar is removed from lib and nifi is restarted, GenerateFlowFile 
> will come up in ghosted mode (as expected).
> When nifi-standard-nar is replaced and nifi is restarted, GenerateFlowFile 
> will be restored, but its dynamic property will not be accessable.
> This was originally filed as a second part of NIFI-11109, but after looking 
> more into the underlying causes/symptoms, realized that these are two 
> different issues. 



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

Reply via email to