You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Matt Burgess (Jira)" <ji...@apache.org> on 2022/12/22 19:06:00 UTC

[jira] [Updated] (NIFI-10998) SplitJson does not honor latest setting for JsonPath Expression

     [ https://issues.apache.org/jira/browse/NIFI-10998?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Matt Burgess updated NIFI-10998:
--------------------------------
    Status: Patch Available  (was: In Progress)

> 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: 10m
>  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)