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

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

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

NIFI-8330: Fix compilation of Jython scripts for scripting components
- Add onPropertyModified to ExecuteScript to recompile on change

This closes #4903.

Signed-off-by: Mark Payne <[email protected]>


> JythonScriptEngineConfigurator needs to recompile on init()
> -----------------------------------------------------------
>
>                 Key: NIFI-8330
>                 URL: https://issues.apache.org/jira/browse/NIFI-8330
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Extensions
>            Reporter: Matt Burgess
>            Assignee: Matt Burgess
>            Priority: Major
>             Fix For: 1.14.0
>
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> NIFI-8080 introduced a kind of regression in the sense that an invalid Jython 
> script can be supplied to InvokeScriptedProcessor (or related scripting 
> components) and it will successfully "compile". However it will generate an 
> error every time eval() is called, and will not be recompiled if the script 
> is changed because a CompiledScript object exists. The workaround/approach is 
> that the script must be corrected and then NiFi must be restarted.
> The JythonScriptEngineConfigurator should recompile the script whenever 
> init() is called, whether there is an existing CompiledScript object or not.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to