[
https://issues.apache.org/jira/browse/MINIFICPP-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gábor Gyimesi updated MINIFICPP-1240:
-------------------------------------
Fix Version/s: (was: 0.99.2)
> Check last modified timestamp of the inode before re-reading the script file
> of ExecutePythonScript
> ---------------------------------------------------------------------------------------------------
>
> Key: MINIFICPP-1240
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1240
> Project: Apache NiFi MiNiFi C++
> Issue Type: Improvement
> Affects Versions: 0.7.0
> Reporter: Adam Hunyadi
> Assignee: Gábor Gyimesi
> Priority: Minor
> Fix For: 0.12.0
>
>
> *Acceptance criteria:*
> *GIVEN* A Getfile -> ExecutePythonScript -> Putfile workflow
> *WHEN* The ExecutePythonScript is run twice *without* any update on the
> script file inbetween
> *THEN* There should be no log line stating that the script was reloaded
> *GIVEN* A Getfile -> ExecutePythonScript -> Putfile workflow
> *WHEN* The ExecutePythonScript is run twice *with* an update on the script
> file inbetween
> *THEN* On the second execution, the new script file should be executed and a
> re-read should be logged
> *Background:*
> The ExecutePythonScriptProcessor currently rereads the script file every time
> it is on schedule. This is suboptimal.
> *Proposal:*
> As an optimization we may want to check the last modified timestamp of the
> inode before reading the file.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)