You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Adam Hunyadi (Jira)" <ji...@apache.org> on 2020/05/27 09:30:00 UTC
[jira] [Updated] (MINIFICPP-1240) Check last modified timestamp of
the inode before re-reading the script file of ExecutePythonScript
[ https://issues.apache.org/jira/browse/MINIFICPP-1240?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Adam Hunyadi updated MINIFICPP-1240:
------------------------------------
Description:
*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 without a change in the script file content
*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.
was:As an optimization we may want to check the last modified timestamp of the inode before reading the file.
> 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: Adam Hunyadi
> Priority: Minor
> Fix For: 1.0.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 without a change in the script file content
> *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.3.4#803005)