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

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

Commit c11092b2b42177aa563edb89f347af5bb420daf4 in nifi's branch 
refs/heads/main from Matt Burgess
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=c11092b2b4 ]

NIFI-10998 Fixed SplitJson to always compile new JsonPath when property changes

This closes #6803

Signed-off-by: David Handermann <exceptionfact...@apache.org>


> SplitJson does not honor latest setting for JsonPath Expression
> ---------------------------------------------------------------
>
>                 Key: NIFI-10998
>                 URL: https://issues.apache.org/jira/browse/NIFI-10998
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Matt Burgess
>            Assignee: Matt Burgess
>            Priority: Major
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Due to a behavior change in NIFI-10851 (being investigated separately as a 
> possible regression), SplitJson will no longer recompile the latest setting 
> for the JsonPath Expression property. This is due to a check in 
> onPropertyModified() that oldValue not be null, but the new behavior is that 
> oldValue is being set to null, preventing the cache from being cleared and 
> the new expression compiled and cached.
> As this appears to be a very minor performance improvement (to not bother 
> clearing the cache if it's the first time this property is set), I propose to 
> clear the JsonPath Expression cache whenever the property is changed 
> (regardless of its previous value).



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

Reply via email to