The GitHub Actions job "Required Checks" on 
texera.git/fix/monotonic-clock-negative-elapsed-time has failed.
Run started by GitHub user lalalastella (triggered by aglinxinyuan).

Head commit for run:
e81241f6246157dd30d51f6fdb3544369ad93f84 / Stella Jiang <[email protected]>
fix(pyamber): use monotonic_ns to prevent negative elapsed times

time.time_ns() (wall clock) can go backward on NTP adjustments or in
VMs, making end_time - start_time negative in _switch_context and
_process_dcm.  Passing that negative delta to StatisticsManager raised
ValueError, which was unhandled by the DataProcessor thread and left
the worker in a deadlocked wait.

Fix: replace all time.time_ns() in main_loop.py with time.monotonic_ns(),
which is guaranteed non-decreasing.

Defense-in-depth: update increase_data_processing_time and
increase_control_processing_time to log a warning and return early
instead of raising ValueError for negative values.  This keeps the
worker alive in the unlikely event of any remaining clock anomaly.

Closes #3768

Report URL: https://github.com/apache/texera/actions/runs/27809374959

With regards,
GitHub Actions via GitBox

Reply via email to