Repository navigation
Feature: Support additional storage classes in S3 - #107251
alexey-milovidov merged 12 commits into
Conversation
|
Workflow [PR], commit [be04c86] Summary: ✅
AI ReviewSummaryThis PR expands the PR Metadata
Final Verdict
|
The `storage_class_name` validation list now also accepts `REDUCED_REDUNDANCY` and `STANDARD_IA`, but the `s3` table function and `S3` table engine docs still listed only `STANDARD` and `INTELLIGENT_TIERING`. Update both docs to the final supported set and note that only classes allowing immediate retrieval are supported (archival classes such as `GLACIER` are rejected). Addresses the AI review "Request changes" finding on ClickHouse#107251 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The test only checked rejected values, so reverting the allow-list to the old `STANDARD` / `INTELLIGENT_TIERING` set would still pass. Add `SELECT count()` reads with `STANDARD`, `REDUCED_REDUNDANCY`, `STANDARD_IA` and `INTELLIGENT_TIERING`, which pass validation and read the fixture instead of throwing `INVALID_SETTING_VALUE`. This exercises the read path without depending on a successful S3 upload. Addresses the AI review "Request changes" finding on ClickHouse#107251 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
I pushed a few follow-up commits to address the review feedback (merged
The error-message wording suggested by @den-crane is already in place on |
The `S3` engine description registered in `registerStorageObjectStorage.cpp` is exposed directly through `system.table_engines` and `SHOW TABLE ENGINES`, so it is a user-facing documentation surface. It still advertised only `STANDARD` and `INTELLIGENT_TIERING`; align it with the new allow-list (`STANDARD`, `REDUCED_REDUNDANCY`, `STANDARD_IA`, `INTELLIGENT_TIERING`) and the two Markdown docs, noting that archival classes such as `GLACIER` are not supported. Addresses the AI review finding on ClickHouse#107251 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Follow-up for the AI review finding: the |
|
The latest AI review flags a genuine inconsistency worth a decision here (@alexey-milovidov): The docs now say "only S3 storage classes that allow immediate retrieval are supported", but the allow-list in
Only Two ways to resolve it:
I recommend option 1. Since expanding the accepted values of a user-facing setting is hard to reverse, I did not push it unilaterally onto your approved PR — happy to implement either option immediately, just let me know which you prefer. The two failing stateless tests ( |
|
@alexey-milovidov, the author has now implemented option 1 from the design note above in commit
This resolves the last unresolved review thread on |
|
I updated the PR description and changelog entry to match commit The remaining red CI is unrelated to this change. The unit test @groeneai, this new flake looks caused by #108988 and sits right next to your #108887 ( |
|
Merged The only red on The PR's own diff is unchanged by the merge (only the six feature files: This still needs a fresh review from @alexey-milovidov: the earlier approval was on the narrow four-class set, and commit |
|
@alexey-milovidov Fix in a separate PR: #109842 (Closes #109841). Root cause: #108988 (merged 18:05 UTC, exact failure onset) moved the callback-runner group capture from creation time to enqueue time (via |
|
📊 Cloud Performance Report ✅ AI verdict: no significant changes detected. K_source=6 K_base=30 flagged=0/65 clickbench🟢 No significant changes tpch_adapted_1_official🟢 No significant changes Debug info
|
|
@alexey-milovidov, the author has pushed the agreed follow-up (commit Verified:
The one remaining unresolved automated-review thread on CI on |
LLVM Coverage Report
Changed lines: Changed C/C++ lines covered: 12/13 (92.31%) · Uncovered code |
|
The The other red job — No code changed. This still needs a fresh review of the 7-class set ( |
|
The
I re-ran the failed private sync jobs. The change itself is unchanged — still the 7-class allow-list ( |
|
Update on the
Not re-running it further, since it's a known upstream sanitizer flake rather than a real failure. |
Cherry pick #107251 to 26.3: Feature: Support additional storage classes in S3
Cherry pick #107251 to 26.5: Feature: Support additional storage classes in S3
Backport #107251 to 26.5: Feature: Support additional storage classes in S3
Backport #107251 to 26.3: Feature: Support additional storage classes in S3
Backport #107251 to 26.6: Feature: Support additional storage classes in S3
The `storage_class_name` validation list now also accepts `REDUCED_REDUNDANCY` and `STANDARD_IA`, but the `s3` table function and `S3` table engine docs still listed only `STANDARD` and `INTELLIGENT_TIERING`. Update both docs to the final supported set and note that only classes allowing immediate retrieval are supported (archival classes such as `GLACIER` are rejected). Addresses the AI review "Request changes" finding on ClickHouse#107251 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The test only checked rejected values, so reverting the allow-list to the old `STANDARD` / `INTELLIGENT_TIERING` set would still pass. Add `SELECT count()` reads with `STANDARD`, `REDUCED_REDUNDANCY`, `STANDARD_IA` and `INTELLIGENT_TIERING`, which pass validation and read the fixture instead of throwing `INVALID_SETTING_VALUE`. This exercises the read path without depending on a successful S3 upload. Addresses the AI review "Request changes" finding on ClickHouse#107251 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
The `S3` engine description registered in `registerStorageObjectStorage.cpp` is exposed directly through `system.table_engines` and `SHOW TABLE ENGINES`, so it is a user-facing documentation surface. It still advertised only `STANDARD` and `INTELLIGENT_TIERING`; align it with the new allow-list (`STANDARD`, `REDUCED_REDUNDANCY`, `STANDARD_IA`, `INTELLIGENT_TIERING`) and the two Markdown docs, noting that archival classes such as `GLACIER` are not supported. Addresses the AI review finding on ClickHouse#107251 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…5-s3-storage-classes Feature: Support additional storage classes in S3
Closes: #107235
Description
Extends the
storage_class_namesvalidation allow-list inS3RequestSettings.cppso thes3_storage_class_namesetting also acceptsREDUCED_REDUNDANCY,STANDARD_IA,ONEZONE_IA,GLACIER_IR, andEXPRESS_ONEZONE, in addition to the previously supportedSTANDARDandINTELLIGENT_TIERING.Only S3 storage classes that allow immediate object retrieval are supported. The archival classes that require an asynchronous restore before an object can be read —
GLACIER(Flexible Retrieval) andDEEP_ARCHIVE— are intentionally rejected.ONEZONE_IA(single-AZ infrequent access),GLACIER_IR(Glacier Instant Retrieval), andEXPRESS_ONEZONE(S3 Express One Zone, used by S3 Express directory buckets) all allow immediate retrieval, so they are accepted. Thes3table function andS3table engine documentation is updated to the final supported set.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Support the
REDUCED_REDUNDANCY,STANDARD_IA,ONEZONE_IA,GLACIER_IR, andEXPRESS_ONEZONEvalues (in addition toSTANDARDandINTELLIGENT_TIERING) for thes3_storage_class_namesetting.Documentation entry for user-facing changes
Version info
26.7.1.769(included in26.7and later)26.6.2.140,26.5.6.104,26.3.17.99