yangzhang75 opened a new issue, #5916:
URL: https://github.com/apache/texera/issues/5916
### What happened?
PR #5597 changed PythonWorkflowWorker to pass the Python worker's startup
config as a single JSON-string command-line argument (e.g.
{"workerId":"w","outputPort":"5000",...}), parsed by
texera_run_python_worker.py via json.loads.
On Windows, the JVM (ProcessBuilder) assembles argv into a single
command-line string, and the inner double quotes are stripped before Python
receives the argument. Python then gets {workerId:w,...} instead of valid JSON
and crashes with:
json.decoder.JSONDecodeError: Expecting property name enclosed in double
quotes
Linux/macOS are unaffected because the JVM passes argv directly without a
shell, so the quotes survive.
Expected: Python worker starts on all platforms.
### How to reproduce?
1. On Windows, run a workflow containing any Python UDF operator.
2. The Python worker process fails to launch; logs show the JSONDecodeError
above.
Version/Branch: 1.3.0-incubating-SNAPSHOT (main)
Commit Hash: 84fe817 (merge of #5597)
### Version/Branch
1.3.0-incubating-SNAPSHOT (main)
### Commit Hash (Optional)
_No response_
### What browsers are you seeing the problem on?
_No response_
### Relevant log output
```shell
JSONDecodeError: Expecting property name enclosed in double quotes
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]