You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@texera.apache.org by "aglinxinyuan (via GitHub)" <gi...@apache.org> on 2026/07/05 01:33:22 UTC
[PR] refactor(engine): remove dead CacheSourceOpExec and OpExecSource plumbing [texera]
aglinxinyuan opened a new pull request, #6126:
URL: https://github.com/apache/texera/pull/6126
### What changes were proposed in this PR?
Remove the dead `CacheSourceOpExec` executor and its `OpExecSource` plumbing.
Cache source operators were replaced by input-port materialization reader threads in #3425 (the symmetric follow-up to sink-operator removal in #3312). The scheduler no longer inserts a cache-source read op for a materialized link — it tags the downstream input port with the URI directly:
```
Before (pre-#3425): upstream OutputPort(URI) ──► [CacheSourceOpExec] ──► downstream InputPort
After (#3425+): upstream OutputPort(URI) ─────────────────────────► downstream InputPort(URI)
```
Since then `CacheSourceOpExec` has been unreachable: `SpecialPhysicalOpFactory.newSourcePhysicalOp` — the only producer of an `OpExecSource` init-info, which is what constructed `CacheSourceOpExec` in `DataProcessorRPCHandlerInitializer.setupExecutor` — has no production caller (its only references were its own spec).
Removed:
| Item | Location |
| --- | --- |
| `CacheSourceOpExec` | `common/workflow-operator/.../source/cache/CacheSourceOpExec.scala` |
| `SpecialPhysicalOpFactory` (+ spec) | `common/workflow-operator/.../operator/SpecialPhysicalOpFactory.scala` |
| `OpExecSource` match arm + now-unused `CacheSourceOpExec`/`URI` imports | `amber/.../worker/DataProcessorRPCHandlerInitializer.scala` |
| `OpExecSource` message + `opExecSource = 3` oneof field | `common/workflow-core/.../protobuf/.../executor.proto` |
The `OpExecInitInfo` oneof is an internal controller↔worker wire format (built and consumed within the same deployment; `preserve_unknown_fields: false`), so dropping the field is safe. Field number `3` is now `reserved` to prevent reuse, and the newly-unused `virtualidentity.proto` import is dropped.
### Any related issues, documentation, discussions?
Closes #6125. The dead code was discovered during review of the test-coverage PR #6098 (the `CacheSourceOpExecSpec` added there was dropped rather than kept).
### How was this PR tested?
No behavioral change — pure dead-code removal.
- `sbt "WorkflowOperator/compile" "WorkflowExecutionService/compile"` — green (proto regenerates; the `OpExecInitInfo` match remains exhaustive without the `OpExecSource` case)
- `sbt "WorkflowExecutionService/scalafmtCheck" "WorkflowExecutionService/scalafixAll --check"` — clean
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Opus 4.8 [1M context])
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(engine): remove dead CacheSourceOpExec and OpExecSource plumbing [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on PR #6126:
URL: https://github.com/apache/texera/pull/6126#issuecomment-4884617099
Added `MultiRegionWorkflowIntegrationSpec` (9a31f76) to cover the multi-region path end-to-end, since removing the cache sources touches cross-region delivery and we only had scheduling unit tests there before.
It's the X-shaped workflow you described: two CSV sources fan into a hash join (build/probe) → a Python sort UDF, and also into a union — the join and union are the two terminal outputs. The join's build→probe dependency forces the build side to be materialized, so the plan spans ≥2 regions and the data crosses a region boundary via the input-port materialization reader threads (the mechanism that replaced cache source in #3425).
It asserts both structure and correctness: ≥2 regions (via the same `CostBasedScheduleGenerator` the controller uses), the self-join on the unique `Order ID` key yields 100 rows sorted by the Python UDF, and the union concatenates both sources into 200 rows. Tagged `@IntegrationTest` so it runs in the `amber-integration` job with real Python workers.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(engine): remove dead CacheSourceOpExec and OpExecSource plumbing [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #6126:
URL: https://github.com/apache/texera/pull/6126#issuecomment-4884426407
<!-- texera-benchmarks-comment -->
## 📊 Arrow Flight E2E bench
_(no arrow-flight-e2e.csv in artifact)_
[Full dashboard](https://apache.github.io/texera/dev/bench/) · [Workflow run](https://github.com/apache/texera/actions/runs/28725830352)
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(engine): remove dead CacheSourceOpExec and OpExecSource plumbing [texera]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #6126:
URL: https://github.com/apache/texera/pull/6126#issuecomment-4884413976
<!-- texera-reviewer-suggestion -->
### 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.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(engine): remove dead CacheSourceOpExec and OpExecSource plumbing [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on code in PR #6126:
URL: https://github.com/apache/texera/pull/6126#discussion_r3524167772
##########
common/workflow-core/src/main/protobuf/org/apache/texera/amber/core/executor.proto:
##########
@@ -39,15 +38,12 @@ message OpExecWithClassName {
string descString = 2;
}
-message OpExecSource {
- string storageKey = 1;
- WorkflowIdentity workflowIdentity = 2 [(scalapb.field).no_box = true];
-}
-
message OpExecInitInfo {
+ // Field number 3 (OpExecSource / opExecSource) was removed after cache source
+ // operators were replaced by input-port materialization reader threads (#3425).
+ reserved 3;
Review Comment:
Good call — dropped the reserve in e89fe4a. Thanks for the review!
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(engine): remove dead CacheSourceOpExec and OpExecSource plumbing [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan merged PR #6126:
URL: https://github.com/apache/texera/pull/6126
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(engine): remove dead CacheSourceOpExec and OpExecSource plumbing [texera]
Posted by "Yicong-Huang (via GitHub)" <gi...@apache.org>.
Yicong-Huang commented on code in PR #6126:
URL: https://github.com/apache/texera/pull/6126#discussion_r3524158487
##########
common/workflow-core/src/main/protobuf/org/apache/texera/amber/core/executor.proto:
##########
@@ -39,15 +38,12 @@ message OpExecWithClassName {
string descString = 2;
}
-message OpExecSource {
- string storageKey = 1;
- WorkflowIdentity workflowIdentity = 2 [(scalapb.field).no_box = true];
-}
-
message OpExecInitInfo {
+ // Field number 3 (OpExecSource / opExecSource) was removed after cache source
+ // operators were replaced by input-port materialization reader threads (#3425).
+ reserved 3;
Review Comment:
as we control both sides of the proto, we don't need to reserve it.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(engine): remove dead CacheSourceOpExec and OpExecSource plumbing [texera]
Posted by "codecov-commenter (via GitHub)" <gi...@apache.org>.
codecov-commenter commented on PR #6126:
URL: https://github.com/apache/texera/pull/6126#issuecomment-4884426975
## [Codecov](https://app.codecov.io/gh/apache/texera/pull/6126?dropdown=coverage&src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
:white_check_mark: All modified and coverable lines are covered by tests.
:white_check_mark: Project coverage is 59.11%. Comparing base ([`e0040dc`](https://app.codecov.io/gh/apache/texera/commit/e0040dc322594aa52b7888689d1a1642e004071b?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)) to head ([`4e56687`](https://app.codecov.io/gh/apache/texera/commit/4e566878c8c3d110a877488b6dcbc405e70dc654?dropdown=coverage&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)).
:warning: Report is 1 commits behind head on main.
<details><summary>Additional details and impacted files</summary>
```diff
@@ Coverage Diff @@
## main #6126 +/- ##
=========================================
Coverage 59.11% 59.11%
Complexity 3202 3202
=========================================
Files 1132 1132
Lines 43681 43681
Branches 4734 4734
=========================================
Hits 25821 25821
Misses 16430 16430
Partials 1430 1430
```
| [Flag](https://app.codecov.io/gh/apache/texera/pull/6126/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | Coverage Δ | | *Carryforward flag |
|---|---|---|---|
| [access-control-service](https://app.codecov.io/gh/apache/texera/pull/6126/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `70.00% <ø> (ø)` | | |
| [agent-service](https://app.codecov.io/gh/apache/texera/pull/6126/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `44.59% <ø> (ø)` | | Carriedforward from [e0040dc](https://app.codecov.io/gh/apache/texera/commit/e0040dc322594aa52b7888689d1a1642e004071b?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [amber](https://app.codecov.io/gh/apache/texera/pull/6126/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `63.12% <ø> (ø)` | | Carriedforward from [e0040dc](https://app.codecov.io/gh/apache/texera/commit/e0040dc322594aa52b7888689d1a1642e004071b?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [computing-unit-managing-service](https://app.codecov.io/gh/apache/texera/pull/6126/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `0.00% <ø> (ø)` | | Carriedforward from [e0040dc](https://app.codecov.io/gh/apache/texera/commit/e0040dc322594aa52b7888689d1a1642e004071b?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [config-service](https://app.codecov.io/gh/apache/texera/pull/6126/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `52.30% <ø> (ø)` | | |
| [file-service](https://app.codecov.io/gh/apache/texera/pull/6126/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `62.81% <ø> (ø)` | | Carriedforward from [e0040dc](https://app.codecov.io/gh/apache/texera/commit/e0040dc322594aa52b7888689d1a1642e004071b?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [frontend](https://app.codecov.io/gh/apache/texera/pull/6126/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `51.31% <ø> (ø)` | | Carriedforward from [e0040dc](https://app.codecov.io/gh/apache/texera/commit/e0040dc322594aa52b7888689d1a1642e004071b?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [notebook-migration-service](https://app.codecov.io/gh/apache/texera/pull/6126/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `78.57% <ø> (ø)` | | |
| [pyamber](https://app.codecov.io/gh/apache/texera/pull/6126/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `91.19% <ø> (ø)` | | Carriedforward from [e0040dc](https://app.codecov.io/gh/apache/texera/commit/e0040dc322594aa52b7888689d1a1642e004071b?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
| [workflow-compiling-service](https://app.codecov.io/gh/apache/texera/pull/6126/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) | `55.14% <ø> (ø)` | | Carriedforward from [e0040dc](https://app.codecov.io/gh/apache/texera/commit/e0040dc322594aa52b7888689d1a1642e004071b?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) |
*This pull request uses carry forward flags. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) to find out more.
</details>
[:umbrella: View full report in Codecov by Harness](https://app.codecov.io/gh/apache/texera/pull/6126?dropdown=coverage&src=pr&el=continue&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
:loudspeaker: Have feedback on the report? [Share it here](https://about.codecov.io/codecov-pr-comment-feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache).
<details><summary> :rocket: New features to boost your workflow: </summary>
- :package: [JS Bundle Analysis](https://docs.codecov.com/docs/javascript-bundle-analysis): Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
</details>
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] refactor(engine): remove dead CacheSourceOpExec and OpExecSource plumbing [texera]
Posted by "aglinxinyuan (via GitHub)" <gi...@apache.org>.
aglinxinyuan commented on PR #6126:
URL: https://github.com/apache/texera/pull/6126#issuecomment-4884653005
Reorganized per the review: the multi-region e2e test now lands first as its own PR, #6132, so the path has end-to-end coverage **before** this removal rather than in the same change. I dropped the test commit here and rebased this branch onto latest main (it's now removal-only). Once #6132 merges I'll rebase this on top so its CI re-runs the multi-region test against the removal.
--
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: notifications-unsubscribe@texera.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org