Skip to content

refactor(config): remove the unread UDF Python log settings - #8742

Merged
aglinxinyuan merged 1 commit into
apache:mainfrom
aglinxinyuan:refactor/config-udf-log-settings
Oct 24, 2026
Merged

aglinxinyuan merged 1 commit into
apache:mainfrom
aglinxinyuan:refactor/config-udf-log-settings

Conversation

@aglinxinyuan

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Removes the UDF Python log settings that nothing reads. −30 lines. There is no behaviour change.

  • udf.conf: the python.log.fileHandler section (dir, level, format and their UDF_PYTHON_LOG_FILEHANDLER_* overrides) and python.log.streamHandler.format (with UDF_PYTHON_LOG_STREAMHANDLER_FORMAT).
  • UdfConfig: pythonLogStreamHandlerFormat, pythonLogFileHandlerDir, pythonLogFileHandlerLevel, pythonLogFileHandlerFormat. The vals and the keys go together, because the vals' eager getString would throw once a key is gone.
  • UdfConfigSpec: the assertions for the removed settings.

python.log.streamHandler.level stays. PythonWorkflowWorker forwards it as loggerLevel, and CI sets UDF_PYTHON_LOG_STREAMHANDLER_LEVEL.

History

Introduced by #1119 (2021-05-13), "Add simple debug logging to PythonUDF": the conf keys. #3466 (2025-06-12), "Move all conf files and readers to core/config": the UdfConfig vals
Usage removed by #1958 (2023-06-04), "Remove the deprecated Python UDF V1". It deleted the Java launcher that read these keys and attached the file handler. The UdfConfig vals were never used

The keys have been dead for over three years. The worker installs one stderr sink at the forwarded level and has never received a format or a file-handler setting since #1958.

Any related issues, documentation, discussions?

Closes #8741

How was this PR tested?

No new tests. UdfConfigSpec keeps its cases for the surviving settings.

Locally, from the repo root with Java 17:

  • sbt "Config/Test/compile" "WorkflowExecutionService/Test/compile": success.
  • sbt "Config/testOnly *UdfConfigSpec *PythonUtilsSpec": 4 tests, all pass.
  • sbt "Config/scalafmtCheckAll" "Config/scalafixAll --check" "WorkflowExecutionService/scalafmtCheckAll" "WorkflowExecutionService/scalafixAll --check": clean.

To re-check:

git grep -n -E "fileHandler|LOG_FILEHANDLER|STREAMHANDLER_FORMAT|pythonLogStreamHandlerFormat"   # no hits

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 5.5)

🤖 Generated with Claude Code

Nothing has read python.log.fileHandler.* or streamHandler.format since
apache#1958 deleted the Python UDF V1 launcher; the worker only receives the
stream-handler level. Drop the four conf keys with their env overrides,
the matching UdfConfig vals (never used since apache#3466 added them), and
their UdfConfigSpec assertions.
Copilot AI balanced review requested due to automatic review settings September 29, 2026 03:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @Ma77Ball
    You can notify them by mentioning @Ma77Ball in a comment.

@codecov-commenter

codecov-commenter commented Sep 29, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.58%. Comparing base (acc6dd1) to head (49d09fc).
⚠️ Report is 85 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8742      +/-   ##
============================================
- Coverage     92.59%   92.58%   -0.01%     
  Complexity     4962     4962              
============================================
  Files          1242     1242              
  Lines         52883    52879       -4     
  Branches       6546     6546              
============================================
- Hits          48965    48960       -5     
- Misses         2290     2291       +1     
  Partials       1628     1628              
Flag Coverage Δ *Carryforward flag
access-control-service 77.38% <ø> (ø)
agent-service 99.16% <ø> (ø) Carriedforward from acc6dd1
amber 88.05% <ø> (-0.01%) ⬇️
computing-unit-managing-service 60.41% <ø> (ø)
config-service 87.37% <ø> (ø)
file-service 81.53% <ø> (ø)
frontend 96.55% <ø> (ø) Carriedforward from acc6dd1
notebook-migration-service 83.73% <ø> (ø)
pyamber 98.56% <ø> (ø) Carriedforward from acc6dd1
workflow-compiling-service 74.09% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ Benchmark changes need a look

🟢 4 better · 🔴 1 worse · ⚪ 10 noise (<±5%) · 0 without baseline

Compared against main acc6dd1 benchmarked on this same runner, so the delta is largely free of cross-runner hardware noise. The "7d avg" column still reflects the gh-pages dashboard. Treat <±5% as noise unless repeated.

Dashboard · Run

config throughput MB/s latency max Δ latest / 7d
🔴 bs=10 sw=10 sl=64 358 0.218 27,031/33,606/33,606 us 🔴 +13.4% / 🔴 +114.9%
🟢 bs=100 sw=10 sl=64 783 0.478 126,495/155,735/155,735 us 🟢 -15.9% / 🔴 +44.3%
⚪ bs=1000 sw=10 sl=64 905 0.552 1,101,305/1,204,743/1,204,743 us ⚪ within ±5% / 🔴 +16.3%
Baseline details

Latest main acc6dd1 from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 358 tuples/sec 372 tuples/sec 807.63 tuples/sec -3.8% -55.7%
bs=10 sw=10 sl=64 MB/s 0.218 MB/s 0.227 MB/s 0.493 MB/s -4.0% -55.8%
bs=10 sw=10 sl=64 p50 27,031 us 23,840 us 12,578 us +13.4% +114.9%
bs=10 sw=10 sl=64 p95 33,606 us 37,605 us 16,088 us -10.6% +108.9%
bs=10 sw=10 sl=64 p99 33,606 us 37,605 us 19,009 us -10.6% +76.8%
bs=100 sw=10 sl=64 throughput 783 tuples/sec 783 tuples/sec 1,039 tuples/sec 0.0% -24.6%
bs=100 sw=10 sl=64 MB/s 0.478 MB/s 0.478 MB/s 0.634 MB/s 0.0% -24.6%
bs=100 sw=10 sl=64 p50 126,495 us 125,246 us 101,098 us +1.0% +25.1%
bs=100 sw=10 sl=64 p95 155,735 us 185,287 us 107,890 us -15.9% +44.3%
bs=100 sw=10 sl=64 p99 155,735 us 185,287 us 119,853 us -15.9% +29.9%
bs=1000 sw=10 sl=64 throughput 905 tuples/sec 913 tuples/sec 1,065 tuples/sec -0.9% -15.0%
bs=1000 sw=10 sl=64 MB/s 0.552 MB/s 0.557 MB/s 0.65 MB/s -0.9% -15.1%
bs=1000 sw=10 sl=64 p50 1,101,305 us 1,091,034 us 992,940 us +0.9% +10.9%
bs=1000 sw=10 sl=64 p95 1,204,743 us 1,160,578 us 1,035,756 us +3.8% +16.3%
bs=1000 sw=10 sl=64 p99 1,204,743 us 1,160,578 us 1,062,329 us +3.8% +13.4%
Raw CSV
config_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,558.73,200,128000,358,0.218,27030.93,33605.97,33605.97
1,100,10,64,20,2553.78,2000,1280000,783,0.478,126495.05,155735.08,155735.08
2,1000,10,64,20,22106.60,20000,12800000,905,0.552,1101304.97,1204743.44,1204743.44

@aglinxinyuan
aglinxinyuan added this pull request to the merge queue Oct 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Oct 21, 2026
@aglinxinyuan
aglinxinyuan added this pull request to the merge queue Oct 24, 2026
Merged via the queue into apache:main with commit 2564060 Oct 24, 2026
55 of 58 checks passed
@aglinxinyuan
aglinxinyuan deleted the refactor/config-udf-log-settings branch October 24, 2026 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

common refactor Refactor the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the unread UDF Python log settings

4 participants