Dmitry Adarov created NIFI-15698:
------------------------------------
Summary: NiFi Python bridge startup hang
Key: NIFI-15698
URL: https://issues.apache.org/jira/browse/NIFI-15698
Project: Apache NiFi
Issue Type: Bug
Affects Versions: 2.6.0
Environment: Docker, Docker image (apache/nifi:2.6.0)
Reporter: Dmitry Adarov
NiFi can hang during startup when loading a persisted flow containing many
Python processors. In the failing case, the process remains alive, but startup
stalls during Python processor initialization and does not reach the normal
Started Server / Started Application completion markers.
This reproduces on the official apache/nifi:2.6.0 image using the container’s
default bundled Python 3.11.x, a synthetic Python extension NAR, and a
generated persisted flow.json.gz containing many no-op Python processor
instances. The issue is nondeterministic: it may not reproduce on the first
attempt, but repeated restarts of the same container with the same persisted
flow can trigger the stalled startup.
In the failing state, logs stop progressing during Python processor creation,
while Java thread dumps show blocking in the Python bridge path around
NiFiPythonGateway and StandardPythonBridge.createProcessor(...).
How to reproduce issue: [https://github.com/distroitt/nifi-bug]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)