Repository navigation
Sink operator result storage abstraction and refactoring - #1363
Merged
Merged
Conversation
Contributor
|
Group discussion 1/11: @zuozhiw will work with @shengquan-ni to review and merge this PR |
zuozhiw
approved these changes
Jan 25, 2022
zuozhiw
left a comment
Contributor
There was a problem hiding this comment.
I've reviewed the PR with @shengquan-ni and it looks good.
yangzhang75
pushed a commit
to yangzhang75/texera
that referenced
this pull request
Jun 22, 2026
Right now we have 2 sink implementations: simple sink and cache sink. Simple sink only has memory storage while cache sink has different storage options. We want to unify the 2 sinks and have an abstraction for sink storage. This PR: 1. Introduces sink storage with a common interface. (SinkStorage and ShardedStorage) This abstraction also supports distributed storage. Sink workers push results directly to storage. 2. Adds 2 sink storage implementation: Memory(single-machine only), MongoDB(distributed) 3. Reworks the result fetching mechanism, we used to let the controller collect results from all workers. But now the server pulls the result from sink storage every 3 secs by default. The controller and workers are not involved in this process anymore. 4. Removes CacheSink operator since every sink has its sink storage now. Co-authored-by: zuozhiw <[email protected]>
This was referenced Oct 2, 2026
renovate-bot
pushed a commit
to renovate-bot/apache-_-texera
that referenced
this pull request
Oct 2, 2026
### 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** | apache#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** | apache#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 apache#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](https://claude.com/claude-code)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Right now we have 2 sink implementations: simple sink and cache sink. Simple sink only has memory storage while cache sink has different storage options. We want to unify the 2 sinks and have an abstraction for sink storage.
This PR: