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

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

Commit bd110317256043ec1ac2aeabc75a4f01f1a9dbf0 in nifi's branch 
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=bd11031725 ]

NIFI-12659 Respawn Python Processes on Unexpected Termination

Refactored so that when a Python Process dies, NiFi will detect this, respawn 
the process, recreate the Processors that exist in the process, re-initialize 
them, and restart them. In testing, found the PythonControllerInteractionIT had 
bugs that were causing Python Processors to be re-initialized many times; this 
resulted in threading issues that caused processors to be invalid, indicating 
that property descriptors didn't exist, etc. Addressed these concerns in the 
same commit, since they were necessary to properly run tests

Ensure that ClassLoader is consistently established for python processor 
proxies; ensure that if we re-initialize python processor the old 
initialization thread is stopped

This closes #8363

Signed-off-by: David Handermann <[email protected]>


> If Controller.py process is killed, nifi is not recover from it
> ---------------------------------------------------------------
>
>                 Key: NIFI-12659
>                 URL: https://issues.apache.org/jira/browse/NIFI-12659
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M1, 2.0.0-M2
>            Reporter: Zoltán Kornél Török
>            Priority: Major
>              Labels: python
>         Attachments: Screenshot 2024-01-18 at 9.04.18.png
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When you first add a python processor to canvas / restart nifi, for the 
> releated python processor a Controller.py processor is start, which handle 
> communication between python / java, etc..
> If you kill this processor (simulate an error in it, or some other reason the 
> processor die), nifi is not restart it and eventually processor became 
> invalid:
> !Screenshot 2024-01-18 at 9.04.18.png|width=684,height=496!
> When this happens, the only solution is to restart nifi.
> This is not good for production use cases (imagine if you realize this error 
> 1 week later) so we need to extend pythonBridge logic to:
>  * periodically check status of the started process
>  * If process is not running, try to restart it and log the problem into nifi 
> log



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

Reply via email to