Repository navigation
feat(services/s3): add R2 and MinIO presets - #8013
Merged
Merged
Conversation
Xuanwo
marked this pull request as ready for review
November 23, 2026 19:13
Xuanwo
requested review from
PsiACE,
Zheaoli,
messense,
oowl,
silver-ymz,
suyanhanx and
tisonkun
as code owners
November 23, 2026 19:13
suyanhanx
approved these changes
Nov 23, 2026
This was referenced Nov 24, 2026
chitralverma
added a commit
to chitralverma/duckdb-opendal
that referenced
this pull request
Nov 24, 2026
* feat: enable the minio and r2 services - OpenDAL split MinIO and Cloudflare R2 out of s3 into presets with their own schemes (apache/opendal#8013, already in the pinned d3a9351). Enable services-minio and services-r2 in the default build. - r2:// writes default to fixed 8 MiB parts: R2 rejects multipart uploads whose non-trailing parts differ in size. - minio and r2 tiers reuse the s3 tier's MinIO stack via compose include; r2 points its endpoint at it. - Guide in docs/services/minio-r2.md. * test: build minio:// and r2:// operators through the FFI * test: null-check the preset operator with as_ref (CodeQL rust/access-invalid-pointer) * refactor: use human-units for size constants and parsing - One `iec()` helper in config/value.rs replaces the `8 * 1024 * 1024` style constants in io.rs, table.rs and tests (cache.rs already had it). - SI bytes, SI bits and IEC bits parse through human-units' `si_unit` / `iec_unit` derives instead of a hand-written factor table. Accepted formats are unchanged. * chore: trim minio/r2 tests, comments and docs
This was referenced Nov 24, 2026
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.
Which issue does this PR close?
Part of #8003.
Rationale for this change
Cloudflare R2 and MinIO expose S3-compatible APIs, but each provider has a smaller configuration contract and distinct endpoint, region, and credential rules. Requiring users to configure them through the generic
s3service adds avoidable setup and exposes options that do not belong to those providers.Dedicated presets provide provider-owned defaults and validation while continuing to share the S3 runtime. The generic
s3service remains the escape hatch for the complete S3 configuration surface.What changes are included in this PR?
R2/R2ConfigandMinio/MinioConfigwith dedicatedr2://andminio://schemes.services-r2andservices-miniofacade features. Enablingservices-s3does not enable either preset.compatible_services.mdas the guide for providers that still use the generics3service.Are there any user-facing changes?
Yes. Rust users can enable only the provider they need and configure its smaller contract. R2 can derive its endpoint from
account_id; MinIO requires its deployment endpoint and defaults the signing region toauto. Existings3configurations remain unchanged.How was this change tested?
Main integration at
e5fe148e4(main7ca9a9390):Actual-service evidence from earlier revisions:
7bd65abc4, the official MinIO RELEASE.2024-09-22T00-33-43Z binary passed 129 behavior tests in each of authenticated and anonymous modes locally.a9837f398passed 129 tests and failed four: two write/stat version-metadata mismatches and two multipart writes rejected because non-trailing parts had unequal lengths. These shared-runtime defects are explicitly deferred to separate work; this PR preserves the failing tests.These actual-service results predate the latest main integration. R2 was not tested locally, and neither Docker Compose nor .NET compilation was validated locally on the latest head. Fresh CI provides current service coverage according to the repository's PR/nightly planning policy.
Breaking changes
None.
AI Usage Statement