Skip to content

Stable 26.3: Bump to 26.3.64 - #2872

Merged
zvonand merged 143 commits into
stable-26.3from
bump/stable-26.3/v26.3.64.3-lts
Nov 17, 2026
Merged

zvonand merged 143 commits into
stable-26.3from
bump/stable-26.3/v26.3.64.3-lts

Conversation

@blau-ai

@blau-ai blau-ai commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):

...

Documentation entry for user-facing changes

...

CI/CD Options

Exclude tests:

  • Fast test
  • Integration Tests
  • Stateless tests
  • Stateful tests
  • Unit tests
  • Performance tests
  • Aarch64 tests
  • All with ASAN
  • All with TSAN
  • All with MSAN
  • All with UBSAN
  • All with Coverage
  • All Regression
  • Disable CI Cache

Regression jobs to run:

  • Fast suites (mostly <1h)
  • Aggregate Functions (2h)
  • Alter (1.5h)
  • Benchmark (30m)
  • CAS (content-addressed storage; Antalya only)
  • ClickHouse Keeper (1h)
  • Iceberg (2h)
  • LDAP (1h)
  • OAuth (5m)
  • Parquet (1.5h)
  • RBAC (1.5h)
  • SSL Server (1h)
  • S3 (2h)
  • S3 Export (2h)
  • Swarms (30m)
  • Tiered Storage (2h)

robot-clickhouse and others added 30 commits October 22, 2026 23:34
…ling when the rows TTL reads a column no part stores
…2164

Backport ClickHouse#122164 to 26.3: Fix vertical TTL delete merge failing when the rows TTL reads a column no part stores
…ference for a `map` with an unsupported value
…t on `CREATE TABLE` without column definitions
…ergeTree variants on empty block after insert deduplication
…egardless of the password when the TOTP code is missing
…ader/test.py::test_leader_election_after_rolling_membership_change`
…supplied scalar overriding a policy's scalar subquery
…he_bypass` on 26.3

`clickhouse-client --external ... --scalar` came with ClickHouse#110419, which is not in 26.3, so the client
ends the external group at `--scalar` and rejects the following `--file=` as an ambiguous option.
Keep the policy baseline and the distributed scalar checks.

CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=127824&sha=5d92a7dcc4a582e404c63969284411152f71d735&name_0=BackportPR&name_1=Stateless%20tests%20%28amd_asan%2C%20distributed%20plan%2C%20parallel%2C%201%2F2%29
PR: ClickHouse#127824

Co-Authored-By: Claude Opus 5.5 <[email protected]>
robot-clickhouse and others added 15 commits November 13, 2026 04:35
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…H REPLACE OPTION` skipping the grant option check

(cherry picked from commit 5e9f5ef)
…entions-26.3

Remove an unused repository switch from ReleaseBranchCI; trivial, required for a release
…1394

Backport ClickHouse#131394 to 26.3: Fix a typo in a comment in `HTTPServerResponse`
… the same `PATH` returning each other's values
…2465

Backport ClickHouse#122465 to 26.3: Fix `ssd_cache` dictionaries with the same `PATH` returning each other's values
…g a column named `mapKeys(m)` for the `Map` index
…0814

Backport ClickHouse#130814 to 26.3: Fix `bloom_filter` index mistaking a column named `mapKeys(m)` for the `Map` index
Release v26.3.64.3-lts

Conflicts committed as-is; the next commit resolves them:
- cmake/autogenerated_versions.txt (both modified)
Took upstream's patch 64 and githash, and kept Altinity's `.10002.altinitytest` describe/string format.
@blau-ai

blau-ai commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator Author

Port-AL: merge conflicts resolved by AI

Conflicted files:

  • cmake/autogenerated_versions.txt (both modified)

Commits:

  • b722507: merge with the conflicts committed as-is

  • 3d4df78: resolution

  • cmake/autogenerated_versions.txt conflicted in the autogenerated version block. Upstream moved it from 26.3.60 to 26.3.64, while stable-26.3 had Altinity's own describe/string values and tweak/flavour lines.

  • I took upstream's VERSION_PATCH 64 and VERSION_GITHASH f4eb235f….

  • I kept Altinity's naming, giving VERSION_DESCRIBE v26.3.64.10002.altinitytest and VERSION_STRING 26.3.64.10002.altinitytest.

  • The VERSION_TWEAK 10002 and VERSION_FLAVOUR altinitytest lines below the block weren't in conflict, so they are unchanged.

@github-actions

github-actions Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Workflow [PR], commit [f6a2ea1]

@zvonand

zvonand commented Nov 16, 2026

Copy link
Copy Markdown
Member

@blau-ai

@blau-ai

blau-ai commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator Author

CI triage for 3d4df78

Summary: 7 failing checks. 3 come from this bump, 3 are infra or resource problems, and DCO is the usual bump-PR noise. The 3 bump-caused failures are not Altinity regressions. They all come from upstream 26.3 backports in the v26.3.64.3-lts tag: each backport brought in a test that expects code which exists only on upstream master. Altinity's tree is identical to the tag for every file involved.

Check Classification
Integration amd_binary 1/5 + amd_asan … 7/8: 9× test_database_iceberg 🔴 From the bump (bad upstream backport)
Integration amd_binary 4/5 + amd_asan … 5/8: test_database_glue::test_timestamp_types_cache_does_not_keep_metadata 🔴 From the bump (bad upstream backport)
Unit tests (asan) + (ubsan): AzureReadBuffer.MissingETagIsAnException aborts 🔴 From the bump (upstream backport doesn't fit the 26.3 Azure SDK)
SQLLogic test: "5 new failures" 🟡 Resource pressure (server-wide memory limit)
Stateless tests (amd_asan, distributed plan, parallel, 4/4) ⚪ Infra (job died during Run, no report)
DCO ⚪ Expected on bump PRs (upstream commits carry no Altinity sign-off)

1. test_database_iceberg: 9 failures (deterministic, same 9 on both builds)

The failing tests are test_writes_mutate_update, test_writes_mutate_delete, test_iceberg_file_progress_callback, test_alter_database_settings_{not_supported,rest_auth_header,onelake_persistence,onelake_refresh_token}, test_catalog_listing_error_surfaces_in_system_tables and test_catalog_commit_conflict_reaches_caller_at_once.

Decisive errors:

Cannot find fail point datalake_get_tables_throw. (BAD_ARGUMENTS)
Unknown setting 'onelake_bearer_token': for database engine DataLakeCatalog. (UNKNOWN_SETTING)
Database engine DataLakeCatalog either does not support settings, or does not support altering settings. (NOT_IMPLEMENTED)
Expected `FileProgressCallbackInvocations` > 0 ... got 0 (regression of PR #105413 wiring)
Paths in Iceberg must use a consistent format ... / Schema with id 0 is unknown   (mutate tests)
AssertionError: no writer was refused, so nothing about conflict handling was exercised

Cause: commit deb73a9, Backport ClickHouse#119238 to 26.3: Don't use backoffs on concurrent inserts conflicts (upstream ClickHouse#120586), adds +497 lines to tests/integration/test_database_iceberg/test.py. Those lines are exactly these 9 test functions. Most of them test features that exist only on master: the datalake_get_tables_throw failpoint, the OneLake settings, ALTER DATABASE … MODIFY SETTING for DataLakeCatalog and the file-progress callback. None of these are in src/ at the upstream tag either: git grep for datalake_get_tables_throw, onelake_refresh_token and FileProgressCallbackInvocations at the tag finds nothing. The test file at our head is byte-identical to the tag's.

Suggested fix: delete the 8 tests that don't belong to ClickHouse#119238 from tests/integration/test_database_iceberg/test.py. The 9th, test_catalog_commit_conflict_reaches_caller_at_once, is ClickHouse#119238's own test, but it fails too, so it probably also needs master-only code. Drop it or mark it skip on 26.3 unless someone wants to dig further. The C++ part of that backport (src/IO/HTTPCommon.cpp) doesn't need to change.

2. test_database_glue::test_timestamp_types_cache_does_not_keep_metadata (fails on both builds)

SELECT max(_size) FROM s3('http://minio1:9001/warehouse-glue/test_ts_cache_.../metadata/*.metadata.json', ...)
 -> DB::NetException: Not found address of host: minio1. (DNS_ERROR)        [amd_asan]
 -> S3 exception: `NoSuchBucket` ... bucket 'warehouse-glue'                  [amd_binary]

Cause: the test comes from 562fc02, Backport ClickHouse#127043 to 26.3: Improve glue catalog cache, and was copied from master unchanged. Master's glue tests use minio1:9001; on 26.3 the glue compose has a minio service and the rest of this file uses http://minio:9000/warehouse-glue. The test file matches the upstream tag apart from our altinityinfra/python-bottle image line.

Suggested fix: a one-line test fix at tests/integration/test_database_glue/test.py:638:

-            f"SELECT max(_size) FROM s3('http://minio1:9001/warehouse-glue/{test_ref}/metadata/*.metadata.json', "
+            f"SELECT max(_size) FROM s3('http://minio:9000/warehouse-glue/{test_ref}/metadata/*.metadata.json', "

3. Unit tests (asan) and (ubsan): AzureReadBuffer.MissingETagIsAnException aborts the binary

[ RUN      ] AzureReadBuffer.MissingETagIsAnException
Logical error: 'std::exception. Code: 1001, type: std::out_of_range, e.what() = map::at:  key not found
...
4. src/Disks/IO/ReadBufferFromAzureBlobStorage.cpp:289: DB::ReadBufferFromAzureBlobStorage::initialize(unsigned long)
8. src/Disks/tests/gtest_azure_read_buffer_missing_etag.cpp:97: AzureReadBuffer_MissingETagIsAnException_Test::TestBody()
Program terminated with signal SIGABRT

Because of the abort, both jobs then report No test result file [.../gtest.json].

Cause: the test comes from 6956cc3, Backport ClickHouse#127673 to 26.3: Throw an exception instead of aborting when an Azure endpoint omits the ETag header. The test expects a DB::Exception(AZURE_BLOB_STORAGE_ERROR) from ClickHouse's own ETag check. With the Azure SDK pinned on 26.3 (contrib/azure = 0f7a2013; master is on 20f8b46b), BlobClient::Download throws std::out_of_range (map::at) first. That exception falls into the catch (...) at line 289, and getCurrentExceptionMessage treats a bare std::exception as a logical error, which aborts in asan/ubsan builds. My reading is that the SDK's response parser does the at("etag") lookup. The map::at message and the catch path fit that, but I didn't step through the SDK. Altinity's Azure sources and the submodule pointer are identical to the tag, so upstream 26.3 has the same problem.

Suggested fix (pick one):

  • In ReadBufferFromAzureBlobStorage::initialize and the matching path in AzureObjectStorage, catch std::out_of_range around Download/GetProperties and rethrow Exception(ErrorCodes::AZURE_BLOB_STORAGE_ERROR, ...). That gives the fix the effect it was meant to have on the older SDK; or
  • drop or disable src/Disks/tests/gtest_azure_read_buffer_missing_etag.cpp on 26.3 and wait for upstream to sort out its backport.

4. SQLLogic test: "5 new failures" (resource pressure, not logic)

All 5 "new" failures (random/select/slt_good_{36,58,61,81,94}.test) have the same cause:

Code: 241. DB::Exception: (total) memory limit exceeded: would use 1.64 GiB ..., current RSS: 27.50 GiB, maximum: 27.49 GiB

These are server-wide OOM rejections, not wrong results. Overall counts got slightly better: 173,988 failing vs 174,008 known, with 25 fixed. Re-run it. If the server's RSS is near 27.5 GiB again on the rerun, that would be worth a closer look as possible memory growth, but one run doesn't show it.

5. Stateless tests (amd_asan, distributed plan, parallel, 4/4): infra

Praktika reports Job failed to produce Result due to a script error or CI runner issue and uploaded no report. In the GitHub job, every step through Download artifact CH_AMD_ASAN_GH succeeded and the Run step has no conclusion, which means the runner died or was cancelled partway through. There are no test names, so I can't say anything about the tests themselves. Re-run it.

6. DCO

The upstream merge commits in a version bump have no Altinity sign-offs. This failure is expected and isn't a code issue.


Next steps: fixes 1 and 2 are test-only and can go on this branch. For 3, the team has to pick an approach (code fix or drop the test). Then re-run SQLLogic and stateless 4/4. If you want, I can push the iceberg and glue test fixes to bump/stable-26.3/v26.3.64.3-lts; mention me and say which option you want for the Azure gtest.

Evidence: result_pr.json for this SHA, the unit_tests_{asan,ubsan} and sqllogic_test job logs, and git log origin/stable-26.3..PR-head and git diff <tag> PR-head over the affected paths.

@zvonand

zvonand commented Nov 16, 2026

Copy link
Copy Markdown
Member

@blau-ai fix the PR-caused fails directly in this branch

- gtest_azure_read_buffer_missing_etag: the Azure SDK pinned on 26.3 reads
  `x-ms-creation-time` and `x-ms-server-encrypted` unconditionally in
  `BlobClient::Download`, so the fake endpoint must send them; otherwise the
  SDK throws `std::out_of_range` before the missing `ETag` is ever checked.
- test_database_iceberg: drop the master-only tests that the upstream
  backport of ClickHouse#119238 dragged in; they need features absent from 26.3
  (failpoint `datalake_get_tables_throw`, OneLake settings, ALTER DATABASE
  settings, ...).
- test_database_glue: use the 26.3 MinIO endpoint `minio:9000` instead of
  master's `minio1:9001`.
@blau-ai

blau-ai commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator Author

I pushed f6a2ea1 to this branch. It fixes the three failures that the 26.3.64 merge caused. All three are test bugs that came in through upstream backports; none is a server bug.

Fixed (caused by this PR)

Check Root cause Fix
Unit tests (asan), Unit tests (ubsan): abort in AzureReadBuffer.MissingETagIsAnException This test came in with upstream backport ClickHouse#127673 (6956cc3). It was written against master's newer Azure SDK. The SDK pinned on 26.3 (0f7a2013, same as upstream 26.3) always reads x-ms-creation-time and x-ms-server-encrypted in BlobClient::Download, so the fake endpoint's response throws std::out_of_range (map::at: key not found) before the missing ETag is ever reached. That surfaces as a LOGICAL_ERROR and aborts the test. The fake response now sends both headers.
Integration test_database_iceberg/test.py::* (9 tests in amd_binary 1/5 and amd_asan old analyzer 7/8) Upstream's backport of ClickHouse#119238 (deb73a9) appended 497 lines of master-only tests; the original PR adds only one test. They need features that 26.3 doesn't have, including on upstream 26.3: failpoint datalake_get_tables_throw, OneLake/ALTER DATABASE settings, the Iceberg write-path changes, and the file-progress callback. Even the one test that belongs to ClickHouse#119238 relies on master's sink behaviour ("no writer was refused"). Restored the file to its stable-26.3 version. That is the only change this PR made to it. The HTTP_CONFLICT change from ClickHouse#119238 is still in ReadWriteBufferFromHTTP.cpp, and 05055_http_conflict_is_not_retried still covers it.
Integration test_database_glue/test.py::test_timestamp_types_cache_does_not_keep_metadata (amd_binary 4/5 and amd_asan 5/8) This test is new in this PR. It reads from master's http://minio1:9001, but 26.3's compose has minio:9000, so it fails with DNS_ERROR: Not found address of host: minio1. Changed the endpoint to http://minio:9000.

Validation: I built the unit tests locally (Debug, no sanitizers) and ran AzureReadBuffer*:AzureReadBigAt*: 3/3 passed, including AzureReadBuffer.MissingETagIsAnException. The builder can't run integration tests, so the iceberg and glue changes are untested here. CI on this PR has the final word on all three fixes.

Not caused by this PR (left alone)

  • Stateless tests (amd_asan, distributed plan, parallel, 4/4): the runner died during the Run step and produced no result or logs. This is infra; rerun the job.
  • SQLLogic test: the 5 "new failures" (slt_good_36/58/61/81/94) are all MEMORY_LIMIT_EXCEEDED, with total server RSS at the 27.5 GiB limit. That's memory pressure on the runner, and none of these queries fails for a logic reason. 25 previously-known failures are fixed in the same run.
  • DCO: the merge commits are missing sign-off. I can't fix that without rewriting history, which I won't do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.