Repository navigation
feat(deploy): replace MinIO with RustFS as the default object store - #8542
Conversation
MinIO's images are gone: `minio/minio` and `minio/mc` 404 on Docker Hub, and every `dl.min.io` binary path returns 410 Gone. That breaks three things on main today — the single-node compose stack, the CI jobs that start an object store, and the k8s lakekeeper-init job, which fetches `mc` from `dl.min.io` at run time. Swap in RustFS (Apache-2.0, S3-compatible) everywhere: - single-node compose: `rustfs` + `rustfs-init` services, `RUSTFS_PORT`, `texera-rustfs` hostname, `rc` (RustFS's `mc` equivalent) for bucket setup. - Helm chart: the bitnami `minio` subchart becomes the upstream `rustfs` chart, pinned to the same appVersion as the image. The service is `<release>-rustfs-svc` and the credentials Secret `<release>-rustfs-secret` with `RUSTFS_ACCESS_KEY`/`RUSTFS_SECRET_KEY` keys, so `_helpers.tpl` is retargeted. lakekeeper-init creates its bucket from an `rc` init container instead of downloading `mc`. - Tests: `RustFSContainer` replaces testcontainers-scala's `MinIOContainer` (no RustFS module exists), built on `GenericContainer` with the `RUSTFS_ACCESS_KEY` credentials and the `/health` readiness probe. One real behavioral difference surfaced. `AbortMultipartUpload` on an unknown upload id is `NoSuchUpload` in the S3 API, and RustFS returns it; MinIO answered such an abort with success. LakeFS wraps the backend's 404 in a 500, so `StagedFileCleanupJob`'s existing 404 catch — written for this case but never exercised under MinIO — no longer covers it. `isAlreadyAborted` now also matches a 500 carrying `NoSuchUpload`, narrowly, so any other server error still rolls the transaction back and retries next round. Migration note: the object store's on-disk format is not shared, and the volume/claim names change (`minio_data` -> `rustfs_data`, `minio-data-pvc` -> `rustfs-data-pvc`). Existing deployments must copy their data across with an S3 client; there is no in-place upgrade. Co-Authored-By: Claude Opus 5 <[email protected]>
Automated Reviewer SuggestionsBased on the
|
Codecov Report❌ Patch coverage is
❌ Your patch status has failed because the patch coverage (33.33%) is below the target coverage (60.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #8542 +/- ##
============================================
- Coverage 95.91% 93.89% -2.02%
- Complexity 459 4858 +4399
============================================
Files 589 1215 +626
Lines 33953 50543 +16590
Branches 4246 6229 +1983
============================================
+ Hits 32565 47458 +14893
- Misses 811 1553 +742
- Partials 577 1532 +955
☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
| config | throughput | MB/s | latency | max Δ latest / 7d | |
|---|---|---|---|---|---|
| 🟢 | bs=10 sw=10 sl=64 | 552 | 0.337 | 17,803/24,535/24,535 us | 🟢 -16.1% / 🔴 +60.2% |
| 🔴 | bs=100 sw=10 sl=64 | 1,130 | 0.69 | 87,518/100,634/100,634 us | 🔴 +9.5% / 🟢 -12.3% |
| ⚪ | bs=1000 sw=10 sl=64 | 1,296 | 0.791 | 761,497/808,442/808,442 us | ⚪ within ±5% / 🟢 -20.1% |
Baseline details
Latest main 5042d96 from same runner
| config | metric | PR | latest main | 7d avg | Δ latest | Δ 7d |
|---|---|---|---|---|---|---|
| bs=10 sw=10 sl=64 | throughput | 552 tuples/sec | 548 tuples/sec | 816.13 tuples/sec | +0.7% | -32.4% |
| bs=10 sw=10 sl=64 | MB/s | 0.337 MB/s | 0.334 MB/s | 0.498 MB/s | +0.9% | -32.3% |
| bs=10 sw=10 sl=64 | p50 | 17,803 us | 17,581 us | 12,250 us | +1.3% | +45.3% |
| bs=10 sw=10 sl=64 | p95 | 24,535 us | 29,252 us | 15,315 us | -16.1% | +60.2% |
| bs=10 sw=10 sl=64 | p99 | 24,535 us | 29,252 us | 19,159 us | -16.1% | +28.1% |
| bs=100 sw=10 sl=64 | throughput | 1,130 tuples/sec | 1,211 tuples/sec | 1,067 tuples/sec | -6.7% | +5.9% |
| bs=100 sw=10 sl=64 | MB/s | 0.69 MB/s | 0.739 MB/s | 0.651 MB/s | -6.6% | +6.0% |
| bs=100 sw=10 sl=64 | p50 | 87,518 us | 79,920 us | 95,768 us | +9.5% | -8.6% |
| bs=100 sw=10 sl=64 | p95 | 100,634 us | 98,551 us | 102,529 us | +2.1% | -1.8% |
| bs=100 sw=10 sl=64 | p99 | 100,634 us | 98,551 us | 114,717 us | +2.1% | -12.3% |
| bs=1000 sw=10 sl=64 | throughput | 1,296 tuples/sec | 1,319 tuples/sec | 1,098 tuples/sec | -1.7% | +18.0% |
| bs=1000 sw=10 sl=64 | MB/s | 0.791 MB/s | 0.805 MB/s | 0.67 MB/s | -1.7% | +18.0% |
| bs=1000 sw=10 sl=64 | p50 | 761,497 us | 759,580 us | 938,676 us | +0.3% | -18.9% |
| bs=1000 sw=10 sl=64 | p95 | 808,442 us | 779,640 us | 979,813 us | +3.7% | -17.5% |
| bs=1000 sw=10 sl=64 | p99 | 808,442 us | 779,640 us | 1,012,292 us | +3.7% | -20.1% |
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,362.55,200,128000,552,0.337,17803.08,24535.42,24535.42
1,100,10,64,20,1769.29,2000,1280000,1130,0.690,87517.52,100634.41,100634.41
2,1000,10,64,20,15428.04,20000,12800000,1296,0.791,761496.73,808442.47,808442.47
aicam
left a comment
There was a problem hiding this comment.
LGTM, we might need to raise PRs to fix some minor issues we will encounter but I believe the refactor here is very clean.
|
If a couple folks could try the local-dev and compose with this I would appreciate it. I only tried it with Skaffold on a cluster, and to my knowledge the CI doesn't test some of these important things. It's also just better in general to try it on a variety of platforms, so we can have a degree of confidence that this at least solves the issue in the immediate term. |
I tested on Docker compose and K8s and both worked fine, thanks. |
|
I tested on windows as well, it works fine. |
|
Awesome, thank you Ali and Carlos for testing it. I will go ahead and merge it now, at least for the time being, to unblock CI. |
…9686) ### What changes were proposed in this PR? Remove code that nothing uses, and constructs that repeat a default or an alias, from the Python tests, the agent service, three frontend specs, the AsterixDB source and the RustFS test container, and make an unreachable error check in the single-node example loader reachable (**+84/−137 lines**). Only the loader's behavior changes: a workflow file that `jq` cannot parse is now reported and skipped instead of aborting the loader. - **Python tests (14 files):** `test_console_message.py` drops the unused `internal_queue` and `timed_buffer` fixtures and their imports. Two tests drop fixture parameters they never read (`executor`, `a_timestamp`), and `test_proxy_client.py` names an unused loop value `_`. The others write `dict(...)` calls as literals, return from fixtures that yield without teardown, drop empty `@pytest.fixture()` parentheses, merge nested `with` blocks, return a value directly instead of through a local, take the first element with `next(iter(...))`, and spell `datetime.timezone.utc`, `socket.timeout` and `bytes()` as `datetime.UTC`, `TimeoutError` and `b""` (Ruff targets Python 3.11). - **Agent service:** `src/agent/index.ts` and `src/api/index.ts` only re-export modules that callers import directly. No file imports either barrel, and the package entry is `src/index.ts`. `workflow-system-metadata.ts` drops the unused `OperatorSchema` and `ValidationError` type imports. - **Frontend specs:** the dataset and model creator specs drop `FormsModule` and `HttpClientTestingModule`, which `createFormlyModalFixture` already provides, and the admin Gmail spec drops three modules that the standalone component and its stubbed service do not need. - **`load-examples.sh`:** tests the `content=$(jq -c . "$workflow_file")` assignment in the `if` instead of checking `$?` after it. The script runs under `set -euo pipefail` and `main` calls `load_workflows` directly, so the old check could never fire: a workflow file that `jq` could not parse aborted the loader and skipped the files after it, although the comment above `FAILURES` calls each failure deliberately non-fatal. Now `print_error` counts the file, the loop moves on, and `main` still exits non-zero at the end. `test_load_examples_sh.sh` adds a case with an unparseable workflow sorted ahead of a good one. - **AsterixDB source:** `AsterixDBConnUtil` and `AsterixDBSourceOpExec` assign the version response and the parsed row once as `val`s instead of overwriting `null` and `None` placeholders. - **`RustFSContainer`:** drops the Scaladoc lines saying the console is left disabled. RustFS 1.0.0 enables the console by default, and the fixture does not override it. | Event | PR / Commit | | --- | --- | | Introduced by | Python tests: apache#1259 (2021-07-23), apache#1498 (2022-04-15), apache#1452 (2022-05-13), apache#2067 (2023-07-27), apache#1748 (2023-11-09), apache#2815 (2024-09-05), apache#4520 (2026-04-27), apache#4704, apache#4719 and apache#4795 (2026-05-03), apache#4893 (2026-05-04), apache#6643 (2026-07-20), apache#6988 (2026-07-29), apache#7374 (2026-08-07), apache#7579 (2026-08-13), apache#8067 (2026-08-29), apache#8542 (2026-09-15), apache#9279 (2026-11-04), apache#8704 (2026-11-05), apache#9623 (2026-11-23); agent service: apache#4020 (2025-11-25), apache#4495 and apache#4540 (2026-04-28); frontend specs: apache#6513 (2026-07-18), apache#6576 (2026-07-20), apache#8068 (2026-08-28); `load-examples.sh`: apache#4247 (2026-03-02); AsterixDB source: apache#1044 (2021-02-25); `RustFSContainer`: apache#8542 (2026-09-15) | | Usage removed by | Creator spec modules: apache#9522 (2026-11-22, `refactor(frontend): share dataset and model resource UI`) moved both specs to `createFormlyModalFixture`. Everything else: unused, unreachable or redundant since introduction. | As of 2026-11-24: - The AsterixDB placeholders have been overwritten before any read for over 5 years. - The console-message fixtures have been unused for over 2 years. - The `load-examples.sh` check has been unreachable for almost 9 months. - The agent-service barrels have had no importer for the 7 months the service has existed. - The creator spec modules have been redundant for 2 days. ### Any related issues, documentation, discussions? Closes apache#9685. ### How was this PR tested? Ran on this branch and on `main` at `424b2a757a` (Windows 11; Python 3.12 with CI's pinned `ruff` 0.14.7; Node 24 with Yarn 4.14.1; Bun 1.3.13; JDK 17; the loader test in an Alpine container with Bash 5.2.21 and jq 1.7.1): ```bash cd amber ruff check src/main/python src/test/python ruff format --check src/main/python src/test/python pytest $(git diff --name-only --relative origin/main -- src/test/python) cd ../agent-service bun test bun run typecheck cd ../frontend npx ng test --watch=false --include='**/user-dataset-creator.component.spec.ts' --include='**/user-model-creator.component.spec.ts' --include='**/admin-gmail.component.spec.ts' npx tsc --noEmit -p src/tsconfig.spec.json yarn prettier-eslint --list-different $(git diff --name-only --relative origin/main -- src) yarn eslint $(git diff --name-only --relative origin/main -- src) cd .. sbt "WorkflowOperator/testOnly org.apache.texera.amber.operator.source.sql.*" WorkflowCore/Test/compile WorkflowOperator/scalafmtCheckAll WorkflowCore/scalafmtCheckAll "WorkflowOperator/scalafixAll --check" "WorkflowCore/scalafixAll --check" bash bin/single-node/tests/test_load_examples_sh.sh ``` - **Python:** - Ruff passes on all 218 files. - The 14 changed test files run 288 tests with the same outcome per test on both sides: 218 pass, 67 are skipped and 3 fail. - The three failures are timestamp cases in `test_ui_parameter_contract.py` that expect UTC and come out 8 hours off in this machine's time zone. They fail the same way on `main`. - **Agent service:** all 361 tests in 20 files and the typecheck pass on both sides. - **Frontend:** the three specs run 37 tests, all passing on both sides. The spec typecheck, prettier-eslint and ESLint pass. - **Scala:** the 11 `source.sql` suites, including the three AsterixDB specs, run 204 tests that all pass on both sides. WorkflowCore's tests compile, and scalafmt and scalafix pass on both modules. - **`load-examples.sh`:** `test_load_examples_sh.sh` passes all 11 checks. Against `main`'s loader, the 9 existing checks pass and the 2 new ones fail: `jq` exits 5 at the malformed file, and the loader stops there without creating the other workflow. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (Claude Opus 5.5)
MinIO got all it's images deleted on Friday. This is just the latest stage of the rugpull. It's been umaintained, and containing known severe vulnerabilities since the maintainers did a hard private fork in October.
RustFS quite similar to MinIO from a user standpoint. It seems to drop in well. All the changes I see that Claude had to
do to was basically swap all the image names, adjust things in the charts, and modify how the store is bootstrapped when
initializing a new cluster.
From the mouth of the LLM itself:
rustfs+rustfs-initservices,RUSTFS_PORT,texera-rustfshostname,rc(RustFS'smcequivalent) for bucket setup.miniosubchart becomes the upstreamrustfschart, pinned to the same appVersion as the image. The service is<release>-rustfs-svcand the credentials Secret<release>-rustfs-secretwithRUSTFS_ACCESS_KEY/RUSTFS_SECRET_KEYkeys, so_helpers.tplis retargeted. lakekeeper-init creates its bucket from anrcinit container instead of downloadingmc.RustFSContainerreplaces testcontainers-scala'sMinIOContainer(no RustFS module exists), built onGenericContainerwith theRUSTFS_ACCESS_KEYcredentials and the/healthreadiness probe.One real behavioral difference surfaced.
AbortMultipartUploadon an unknown upload id isNoSuchUploadin the S3 API, and RustFS returns it; MinIO answered such an abort with success. LakeFS wraps the backend's 404 in a 500, soStagedFileCleanupJob's existing 404 catch — written for this case but never exercised under MinIO — no longer covers it.isAlreadyAbortednow also matches a 500 carryingNoSuchUpload, narrowly, so any other server error still rolls the transaction back and retries next round.Migration note: the object store's on-disk format is not shared, and the volume/claim names change (
minio_data->rustfs_data,minio-data-pvc->rustfs-data-pvc). Existing deployments must copy their data across with an S3 client; there is no in-place upgrade.What changes were proposed in this PR?
Move the default storage provider in all charts from MinIO to RustFS.
Any related issues, documentation, discussions?
Related discussion in #3998
Bug in #8541
An alternative interim solution would be #8529 .
The images haven't been deleted from Quay yet, and are exactly the same.
Clearly however this may have just been an oversight though. I don't think the deletion
of the images was a mistake.
How was this PR tested?
I started the branch in Skaffold on a cluster. It seemed to work OK, I uploaded some
tiny amounts of data (<20MB files) and those seemed to work fine in a very basic
workflow.
Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 5