Skip to content

Backport #108674 to 26.5: Do not validate DataLakeCatalog auth_header or build catalog on ATTACH - #108895

Merged
alexey-milovidov merged 1 commit into
26.5from
backport/26.5/108674
Jun 30, 2026
Merged

alexey-milovidov merged 1 commit into
26.5from
backport/26.5/108674

Conversation

@robot-clickhouse

@robot-clickhouse robot-clickhouse commented Jun 30, 2026 •

Copy link
Copy Markdown
Member

Original pull-request #108674
Cherry-pick pull-request #108794

This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.

The PR source

The PR is created in the CI job

Version info

  • Merged into: 26.5.5.11

@robot-clickhouse robot-clickhouse added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default labels Jun 30, 2026
@clickhouse-gh

clickhouse-gh Bot commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [0960f6d]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

Reviewed this backport. It is a faithful but intentionally reduced cherry-pick of #108674, which is correct for 26.5:

  • The master PR had two parts: (1) gate auth_header validation to CREATE only in registerDatabaseDataLake, and (2) defer eager catalog construction on ATTACH (introducing the lazy_init constructor parameter, catalog_mutex, and initialize() const TSA_REQUIRES in DatabaseDataLake.h/.cpp).
  • 26.5 already builds the catalog lazily — its constructor only calls validateSettings and getCatalog constructs catalog_impl on first access — so part (2) does not apply and the .h change is correctly omitted. Only the two behavioral deltas remain: the CREATE-only auth_header guard, and the HTTPHeaderFilter (http_forbid_headers) enforcement in the RestCatalog constructor (since the CREATE-path check is now skipped on ATTACH, the forbidden-header check must run when the catalog is built lazily).
  • Verified the RestCatalog.cpp change is coherent in 26.5: auth_header is std::optional<HTTPHeaderEntry> and RestCatalog derives from WithContext.

CI is green so far (builds, stress, and the parallel stateless shards that run the new no-fasttest test 04401_datalake_attach_does_not_block_startup all pass; 0 failures), with the integration suites still running — those are unrelated 26.5 integration tests (this PR adds no integration test). The branch is MERGEABLE with no conflicts. The shared 04401 test-number prefix with 04401_low_cardinality_fixed_string_partition_pruning (from #108777, a different test name) is benign. Sibling backport to 26.4: #108894.

@alexey-milovidov
alexey-milovidov merged commit 5bd0f3a into 26.5 Jun 30, 2026
34 checks passed
@alexey-milovidov
alexey-milovidov deleted the backport/26.5/108674 branch June 30, 2026 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants