Skip to content

refactor(amber): remove the unused cache.ccf - #8815

Merged
aglinxinyuan merged 1 commit into
apache:mainfrom
aglinxinyuan:refactor/amber-cache-ccf
Oct 2, 2026
Merged

aglinxinyuan merged 1 commit into
apache:mainfrom
aglinxinyuan:refactor/amber-cache-ccf

Conversation

@aglinxinyuan

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Deletes amber/src/main/resources/cache.ccf, an Apache Commons JCS cache configuration that nothing loads. −29 lines. There is no behaviour change. The commons-jcs3-core dependency stays, because ComputingUnitMaster / ComputingUnitWorker still import its InvalidArgumentException.

JCS never names this file in code: it loads /cache.ccf from the classpath implicitly, when the cache manager creates its first region. So the check for this PR is whether anything can create a JCS cache, not whether the file name appears anywhere. Nothing can:

  • Source: the only JCS class referenced in any module is InvalidArgumentException. Nothing calls JCS.getInstance, CacheAccess, CompositeCacheManager or JCSWorker.
  • Bytecode: after compiling amber and the common modules, the compiled classes reference the same single exception class and no other JCS class.
  • Dependencies: no other jar on amber's runtime or test classpath references JCS.

InvalidArgumentException is a plain RuntimeException subclass with no static initializer, so throwing it never reaches the cache manager.

History

Introduced by #1328 (2021-09-08), "[Operator Caching Step 3] add operator cache backend new files and config changes", for JCSOpResultStorage's JCS.getInstance("texera")
Usage removed by #1363 (2022-01-25), "Sink operator result storage abstraction and refactoring". It deleted JCSOpResultStorage, the only code that ever created a JCS cache

It has been dead for over four and a half years.

Any related issues, documentation, discussions?

Closes #8814

How was this PR tested?

No new tests; this deletes a resource file that nothing loads.

Locally, from the repo root with Java 17:

  • sbt "WorkflowExecutionService/Test/compile": success.

To re-check:

git grep -n -i "cache\.ccf\|JCS\.getInstance\|CompositeCacheManager"   # 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

JCS loads /cache.ccf implicitly when a cache region is first created,
and the only code that ever created one, JCSOpResultStorage, went away
in apache#1363. The commons-jcs3 dependency stays: ComputingUnitMaster and
ComputingUnitWorker still use its InvalidArgumentException, which never
touches the cache manager.
Copilot AI balanced review requested due to automatic review settings October 2, 2026 05:03

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

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

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

  • No candidates found from git blame history.

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

⚠️ Benchmark changes need a look

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

Compared against main 566efb8 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 372 0.227 26,306/35,687/35,687 us 🔴 +5.9% / 🔴 +132.9%
🟢 bs=100 sw=10 sl=64 780 0.476 125,677/166,388/166,388 us 🟢 -6.4% / 🔴 +59.1%
🔴 bs=1000 sw=10 sl=64 898 0.548 1,107,255/1,272,950/1,272,950 us 🔴 +10.8% / 🔴 +27.1%
Baseline details

Latest main 566efb8 from same runner

config metric PR latest main 7d avg Δ latest Δ 7d
bs=10 sw=10 sl=64 throughput 372 tuples/sec 393 tuples/sec 829.66 tuples/sec -5.3% -55.2%
bs=10 sw=10 sl=64 MB/s 0.227 MB/s 0.24 MB/s 0.506 MB/s -5.4% -55.2%
bs=10 sw=10 sl=64 p50 26,306 us 24,852 us 12,230 us +5.9% +115.1%
bs=10 sw=10 sl=64 p95 35,687 us 37,703 us 15,320 us -5.3% +132.9%
bs=10 sw=10 sl=64 p99 35,687 us 37,703 us 18,789 us -5.3% +89.9%
bs=100 sw=10 sl=64 throughput 780 tuples/sec 788 tuples/sec 1,070 tuples/sec -1.0% -27.1%
bs=100 sw=10 sl=64 MB/s 0.476 MB/s 0.481 MB/s 0.653 MB/s -1.0% -27.1%
bs=100 sw=10 sl=64 p50 125,677 us 119,757 us 97,964 us +4.9% +28.3%
bs=100 sw=10 sl=64 p95 166,388 us 177,840 us 104,605 us -6.4% +59.1%
bs=100 sw=10 sl=64 p99 166,388 us 177,840 us 113,908 us -6.4% +46.1%
bs=1000 sw=10 sl=64 throughput 898 tuples/sec 915 tuples/sec 1,096 tuples/sec -1.9% -18.1%
bs=1000 sw=10 sl=64 MB/s 0.548 MB/s 0.559 MB/s 0.669 MB/s -2.0% -18.1%
bs=1000 sw=10 sl=64 p50 1,107,255 us 1,092,078 us 963,379 us +1.4% +14.9%
bs=1000 sw=10 sl=64 p95 1,272,950 us 1,149,195 us 1,001,808 us +10.8% +27.1%
bs=1000 sw=10 sl=64 p99 1,272,950 us 1,149,195 us 1,029,482 us +10.8% +23.6%
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,537.90,200,128000,372,0.227,26306.36,35686.72,35686.72
1,100,10,64,20,2565.03,2000,1280000,780,0.476,125676.59,166387.72,166387.72
2,1000,10,64,20,22275.49,20000,12800000,898,0.548,1107254.60,1272950.45,1272950.45

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.59%. Comparing base (566efb8) to head (c26c2f9).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8815   +/-   ##
=========================================
  Coverage     92.58%   92.59%           
  Complexity     4981     4981           
=========================================
  Files          1244     1244           
  Lines         52933    52933           
  Branches       6550     6550           
=========================================
+ Hits          49009    49011    +2     
+ Misses         2293     2292    -1     
+ Partials       1631     1630    -1     
Flag Coverage Δ *Carryforward flag
access-control-service 77.38% <ø> (ø) Carriedforward from 566efb8
agent-service 99.16% <ø> (ø) Carriedforward from 566efb8
amber 88.07% <ø> (+0.01%) ⬆️
computing-unit-managing-service 60.41% <ø> (ø) Carriedforward from 566efb8
config-service 87.37% <ø> (ø) Carriedforward from 566efb8
file-service 81.53% <ø> (ø) Carriedforward from 566efb8
frontend 96.55% <ø> (ø) Carriedforward from 566efb8
notebook-migration-service 83.73% <ø> (ø) Carriedforward from 566efb8
pyamber 98.56% <ø> (ø) Carriedforward from 566efb8
workflow-compiling-service 74.09% <ø> (ø) Carriedforward from 566efb8

*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.

@aglinxinyuan
aglinxinyuan requested review from kunwp1 and mengw15 October 2, 2026 07:06
@mengw15
mengw15 requested a balanced review from Copilot October 2, 2026 20:44

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 review overview

🟢 Approval recommended

Repository searches confirm no code initializes JCS caching or references the deleted resource.

Review effort: Balanced
Findings: None

@aglinxinyuan
aglinxinyuan added this pull request to the merge queue Oct 2, 2026
Merged via the queue into apache:main with commit 28dbb88 Oct 2, 2026
26 checks passed
@aglinxinyuan
aglinxinyuan deleted the refactor/amber-cache-ccf branch October 2, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

engine refactor Refactor the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove the unused cache.ccf

4 participants