This is an automated email from the ASF dual-hosted git repository.
MartijnVisser pushed a commit to branch release-1.20
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/release-1.20 by this push:
new 8a627b7fe47 [FLINK-18476][python]
`PythonEnvUtils#testStartPythonProcess` might fail
8a627b7fe47 is described below
commit 8a627b7fe472e7064af71c77564fc3af542ddda4
Author: Sergey Nuyanzin <[email protected]>
AuthorDate: Wed Aug 5 11:42:07 2026 +0200
[FLINK-18476][python] `PythonEnvUtils#testStartPythonProcess` might fail
(cherry picked from commit e095557d5dbbae33e6011d0b2893af0251f5bb57)
---
.../src/main/java/org/apache/flink/client/python/PythonEnvUtils.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/flink-python/src/main/java/org/apache/flink/client/python/PythonEnvUtils.java
b/flink-python/src/main/java/org/apache/flink/client/python/PythonEnvUtils.java
index b56d5899b15..035154b3383 100644
---
a/flink-python/src/main/java/org/apache/flink/client/python/PythonEnvUtils.java
+++
b/flink-python/src/main/java/org/apache/flink/client/python/PythonEnvUtils.java
@@ -376,7 +376,8 @@ final class PythonEnvUtils {
.collect(Collectors.joining(", ")),
String.join(" ", commands));
Process process = pythonProcessBuilder.start();
- if (!process.isAlive()) {
+ // Only a non-zero exit is a start failure; a fast process may already
have finished.
+ if (!process.isAlive() && process.exitValue() != 0) {
throw new RuntimeException("Failed to start Python process. ");
}