Uh oh!
There was an error while loading. Please reload this page.
[Log](pyudf) Add progress logs for python process pool init - #62974
Conversation
hello-stephen
commented
Apr 30, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
linrrzqqq
commented
Apr 30, 2026
run buildall |
linrrzqqq
commented
Apr 30, 2026
/review |
There was a problem hiding this comment.
Reviewed the PR diff from GitHub. I did not find a blocking issue.
Critical checkpoint conclusions:
- Goal and tests: The change adds periodic elapsed-time/progress logging for Python UDF process pool initialization and reduces regression pipeline Python process counts. The code accomplishes the stated observability goal. No new test is required for the log-only path, and existing Python UDF regression coverage should still exercise pool initialization.
- Scope: The code change is small and focused in
PythonServerManager::ensure_pool_initialized; config changes are limited to regression pipeline BE configs. - Concurrency: Pool initialization still runs under
_pools_mutexas before. The newwait_forloop does not introduce new shared mutable state;success_count/failure_countremain local to the initializing thread, and future ownership is unchanged. - Lifecycle/static initialization: No new static/global object or non-intuitive lifecycle dependency was added. The health-check thread lifecycle is unchanged.
- Configuration: No new config item was added. Existing regression config values are reduced from 64 to 16 only.
- Compatibility/storage/transactions: No protocol, storage format, transaction, visible-version, or persistence path is changed.
- Parallel code paths: UDF/UDAF/UDTF clients all share this same
PythonServerManager::get_clientpath, so the logging applies consistently. - Special conditions/error handling: Existing
Statuspropagation remains checked. The new wait loop only observes future readiness before the existingget(). - Test result changes: No result-file updates are part of the actual GitHub PR diff.
- Observability: The added logs include Python version, waiting slot, success/failure counts, and elapsed time, which should help diagnose slow pool initialization without changing normal success behavior.
- Performance: In normal initialization the added
wait_forcall should be negligible; in slow/hung cases it logs at a 20s interval, which is reasonable. - User focus: No additional user-provided review focus was specified.
Residual note: the progress log is sequential by slot, so if an earlier slot is slow while later futures have already completed, success may not reflect those later completed futures until the earlier slot is collected. This is acceptable for diagnostic progress logging and not a correctness issue.
linrrzqqq
commented
Apr 30, 2026
run buildall |
PR approved by at least one committer and no changes requested. |
PR approved by anyone and no changes requested. |
076ba81 to
ab2356eComparelinrrzqqq
commented
May 7, 2026
run buildall |
Uh oh!
There was an error while loading. Please reload this page.
…2974) Improve observability for rare Python UDF process pool initialization stalls. Previously, when initialization was blocked or unusually slow, logs only showed the start of pool creation, making it difficult to tell whether BE was still waiting on process startup or where time was being spent. This adds lightweight progress and elapsed-time logs to help diagnose initialization hangs without increasing normal-case log volume. And reduce the `max_python_process_num` to 16 in regression test, we don't need so many processes for testing.
…2974) Improve observability for rare Python UDF process pool initialization stalls. Previously, when initialization was blocked or unusually slow, logs only showed the start of pool creation, making it difficult to tell whether BE was still waiting on process startup or where time was being spent. This adds lightweight progress and elapsed-time logs to help diagnose initialization hangs without increasing normal-case log volume. And reduce the `max_python_process_num` to 16 in regression test, we don't need so many processes for testing.
…2974) Improve observability for rare Python UDF process pool initialization stalls. Previously, when initialization was blocked or unusually slow, logs only showed the start of pool creation, making it difficult to tell whether BE was still waiting on process startup or where time was being spent. This adds lightweight progress and elapsed-time logs to help diagnose initialization hangs without increasing normal-case log volume. And reduce the `max_python_process_num` to 16 in regression test, we don't need so many processes for testing.
What problem does this PR solve?
Issue Number: close #xxx
Related PR: #xxx
Problem Summary:
Improve observability for rare Python UDF process pool initialization stalls.
Previously, when initialization was blocked or unusually slow, logs only showed the start of pool creation, making it difficult to tell whether BE was still waiting on process startup or where time was being spent. This adds lightweight progress and elapsed-time logs to help diagnose initialization hangs without increasing normal-case log volume.
And reduce the
max_python_process_numto 16 in regression test, we don't need so many processes for testing.Release note
None
Check List (For Author)
Test
Behavior changed:
Does this need documentation?
Check List (For Reviewer who merge this PR)