mengw15 opened a new pull request, #9356:
URL: https://github.com/apache/texera/pull/9356
### What changes were proposed in this PR?
Adds `result-service`, a Dropwizard service that reads execution results
without a computing unit. It stands in front of Lakekeeper the way
`file-service` stands in front of LakeFS. This PR is the module and its CI
legs, so nothing calls it yet: its image, Helm chart, gateway route and
local-dev entry follow in a second PR, and #8996 moves the frontend over.
| Endpoint | Returns |
|---|---|
| `GET /api/results/workflows/{wid}/latest-execution` | The caller's own
latest finished execution |
| `GET /api/results/executions/{eid}` | Each result of an execution:
operator, port, output mode and row count, from the database alone |
| `GET /api/results/executions/{eid}/operators/{operatorId}/pages` | One
page, with the existing column offset, limit and search; `port` defaults to 0 |
| `GET /api/results/executions/{eid}/operators/{operatorId}/statistics` |
Per-column statistics; `port` defaults to 0 |
Two choices go beyond the issue. A read needs the caller to have started the
execution, or to own or have been granted the workflow, which is narrower than
read access: an execution of a public workflow can read its author's private
datasets, so seeing the workflow is not enough. And `pageSize` is capped at
1000, because a page is read into memory in a service everyone shares.
The catalog cache's size bound and idle expiry become configurable, with the
same defaults. Three follow-ups promised on #9219 ride along:
`getResultUriByLogicalPortId` skips rows with no URI, and two Scaladoc comments
are corrected.
### Any related issues, documentation, discussions?
Part of #8995, which the deployment PR will close. Part of #5363.
### How was this PR tested?
- `ResultResourceSpec` sends requests through the production Jersey and JWT
stack against an embedded database, faking only the Iceberg table. It covers
the read rule on every endpoint, paging, column search and each error code.
- 35 deliberate defects, such as a removed access check or an off-by-one
page, each turned a test red.
- Ran the packaged service against local Lakekeeper and RustFS, reading
tables seeded through `DocumentFactory` rather than a workflow run: every
endpoint, a result in a per-user warehouse, and rows appended while the service
stayed up, which the next page showed.
- `smoke-boot.sh` passes on the dist, `check_binary_deps.py` passes for its
311 jars, and `NOTICE-binary` is the generator's output.
- `Config/test`, `Auth/test`, `WorkflowCore/test` and `ResultService/test`
pass, amber still compiles, and `scalafmtCheck` and `scalafix --check` pass for
those modules.
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-5-5)
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]