Matthew-DWM commented on issue #9361:
URL: https://github.com/apache/texera/issues/9361#issuecomment-6834278520

   @Xiao-zhen-Liu Thanks for taking the time to take a look. I've updated the 
issue description (details below), and each case was reproduced on main with 
the steps in the issue for both the UI and in an engine test running the same 
workflow.
   
   1. Good catch, they've been updated with the verbatim output. Cases 2 and 3 
contain the full thread-dump entry of the stuck thread, along with the Python 
error as printed w/lines where captured.
   2. I agree that UDF code and its imports load after the handshake, and have 
updated the case. What exits early is `texera_run_python_worker.py` itself: its 
imports (`loguru`, `core.*`) and `init_loguru_logger` run before `PythonWorker` 
reports the port. Step 3's invalid `UDF_PYTHON_LOG_STREAMHANDLER_LEVEL` fails 
there (`ValueError: Level 'NOT_A_LEVEL' does not exist`), and so does a Python 
environment without the worker's own packages (`No module named 'loguru'`).
   3. Good point. I re-ran it to double-check and with the published recipe and 
default settings, it hung in 11 of 11 runs (7 in an engine test, 4 in the UI). 
From the runs, it looks like `do_put` can't send its ack while a long C call 
holds the GIL, so it comes down to timing: holds that start during a status 
`doAction` go through fine, and ones that start during a data put hit the 5 s 
`poll`. I've updated the counts in the issue, removed the override from the 
steps, and added a way to check that a hold lasts over 5 s.
   
   <img width="1440" height="720" alt="before-gil" 
src="https://github.com/user-attachments/assets/1b7a10c8-36df-4e49-afc8-64cb240762da";
 />


-- 
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]

Reply via email to