Skip to content

Backport #108470 to 26.6: Hide legacy storage_* credential settings of DataLakeCatalog - #116721

Merged
clickhouse-gh[bot] merged 3 commits into
26.6from
backport/26.6/108470
Aug 31, 2026
Merged

clickhouse-gh[bot] merged 3 commits into
26.6from
backport/26.6/108470

Conversation

@robot-clickhouse-ci-1

@robot-clickhouse-ci-1 robot-clickhouse-ci-1 commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #108470
Cherry-pick pull-request #116274

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.6.4.64

@robot-clickhouse-ci-1 robot-clickhouse-ci-1 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 Aug 27, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [927dd38]

Summary: ✅

@alexey-milovidov

Copy link
Copy Markdown
Member

🕵 @groeneai, investigate the failure: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=116721&sha=9e9c8067a7a3d0c7fc5b31ef91b0e0aafd4da91b&name_0=BackportPR&name_1=Integration%20tests%20%28amd_tsan%2C%206%2F6%29 — test_storage_rabbitmq/test.py::test_rabbitmq_mv_combo failed in Integration tests (amd_tsan, 6/6), and Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/6) ended with a job-level ERROR without any failing test. Both are unrelated to this backport, which only changes DataLakeCatalog settings masking (DataLakeConstants.h, ASTSetQuery.cpp) plus a stateless test. This test has a history of flakiness (see the closed issues #109908 and #109909); if it is flaky again, please provide a fix in a separate PR, or link it here if one is already in progress.

@groeneai

Copy link
Copy Markdown
Collaborator

Both investigated. (1) is not flaky again: the 26.6 branch is running the pre-fix test and the fix is already on master. (2) is a job stall rather than a test failure, and it is concentrated on 26.6.

1. test_rabbitmq_mv_combo in Integration tests (amd_tsan, 6/6)

The reported site, test_storage_rabbitmq/test.py:822, is on 26.6 the pytest.fail after a poll loop that issues one clickhouse-client per materialized view per second, reading a table created with rabbitmq_max_block_size = 100. Both of those were fixed on master:

Marker check on tests/integration/test_storage_rabbitmq/test.py: master and 26.8 carry both changes, 26.6 and 26.7 carry neither.

CIDB rows for this test since #114925 merged (2026-08-17T07:59Z):

base_ref OK FAIL
master 20343 2
26.7 232 0
26.8 118 0
26.6 193 2

26.5 and 25.8 are 93/0 and 71/0. The two master rows are Bugfix validation (integration tests, ...) on my own open #116050, at 42s and 34s, so not this timeout. The two 26.6 rows are this timeout, at 200.1s and 197.9s, on this PR and on one other 26.6 backport, both on 2026-08-29.

So there is no new fix to write: the fix exists and is missing from the branch. I am not hand-authoring a release-branch PR (@ pufit's rule, which you confirmed on #111910). If you want it on 26.6, v26.6-must-backport on #113972 and #114925 reaches 26.6 and 26.7, and 26.8 already has both. Neither PR has been backported or declined before.

2. Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/6)

The job stalls and is then cancelled, so the shard never reports. On this PR that leaf has duration: null, info: "", links: [], zero CIDB rows, and the workflow error is Job failed to produce Result due to a script error or CI runner issue. All three attempts failed the same way and their runner logs are already purged (BlobNotFound), so I took the shape from the newest same-branch, same-check occurrence whose log is retained, tree e6bda2b7a4d6, https://github.com/ClickHouse/ClickHouse/actions/runs/33375086742/job/99439364516:

  • Job starts 09:16:19Z, tests progress to 80%, last output at 10:01:43Z ([gw1] PASSED test_polymorphic_parts/test.py::test_compact_parts_only), then all three xdist workers go silent, and the runner logs The operation was canceled. at 10:55:46Z.
  • That 3243s gap is the only gap over 60s in the whole 2967-line log (next largest is 59s), and the log has lines on both sides of it, so it is a stall inside the job and not a truncated upload. --session-timeout=7200 was never reached, and there is no exit code: -9.

Breadth over 7 days, counting only trees where all five other old analyzer shards reported:

base_ref 6/6 reported 6/6 absent absent
master 2150 41 1.9%
26.7 81 0 0%
26.8 55 0 0%
26.6 50 9 15.3%

Nine distinct 26.6 PRs, and over 14 days 26.6 also loses 5/6 on 14 trees. Test mass does not explain the concentration: per-shard test-seconds average 13.2k to 16.6k on 26.6 against 17.6k to 18.5k on 26.8, which never loses a result.

Nothing here is reachable from this backport's diff. On master the dominant cause of a red old analyzer shard with every test passing was the shutdown gdb fan-out that your #117202 fixed; splitting today's true-master runs by tree ancestry against 7fc3004ed25a, that cleared 2/6 and 5/6 outright (0 of 4 post-fix trees) and did not clear 6/6 (4 of 4). I have no mechanism for the 26.6 concentration and will not guess at one. At roughly 1 tree in 7 a live occurrence is cheap to catch inside the log retention window, so a fix task is investigating at full effort and I will post the fixing-PR link here.

@clickhouse-gh
clickhouse-gh Bot merged commit 292285f into 26.6 Aug 31, 2026
40 checks passed
@clickhouse-gh
clickhouse-gh Bot deleted the backport/26.6/108470 branch August 31, 2026 21:50
@groeneai

Copy link
Copy Markdown
Collaborator

Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/6) on 26.6

I have the mechanism. It is memory over-commitment during test execution, not a timeout, and nothing in it is reachable from this backport's diff.

What the job actually does. Measured across all 60 retained 26.6 failure logs of the 134 failures on that branch (74 have no log):

  • ERROR: Job killed, exit code [137] in 18 of 60, all on 6/6, none on 5/6. exit code: -9 in 16 of 60.
  • Not a session overrun. xdist.dsession appears in 0 of 92 logs (26.6 plus master), while the wrapper's external Timeout exceeded [7800] fires in 24 of 60. On the cleanest occurrence the in-process per-test 900s timer (method: signal) was due at 10:16:43, five minutes into a 54-minute silence, and never printed a line. An in-process timer that never fires while an external one does is a process that is not being scheduled.
  • Not disk. No space left on device and ENOSPC are 0 of 92; df at job start is 5-6% used, and the highest figure at the on-error hook anywhere in the corpus is 33%.
  • Near-deterministic. 6/6 stops at 80% in 21 logs and 79% in 5, with test_polymorphic_parts and test_keeper_snapshot_chunked_transfer both in the in-flight set in 26 of 26. 5/6 stops at 63% with test_distributed_load_balancing in 32 of 34.

Why 26.6 and not 26.7 or 26.8. Nothing bounds the nested containers on any 26.x branch. The runner container gets --memory=64183296000 (59.77 GiB) but also --cgroupns=host, and as ci/defs/job_configs.py:237 on master puts it, "Under --cgroupns=host the nested daemon parents its containers at the host's /docker", i.e. outside that cap. Host RAM is about 62 GiB. 26.6's 6/6 happens to co-schedule test_keeper_snapshot_chunked_transfer (18 long-lived instances plus a shared MinIO) with two other cluster-heavy modules under --dist=loadfile -n 3.

So placement is what differs between the branches, and it is a moving target rather than a property of 6/6: 5/6 failed from 08-20 to 08-25 and 6/6 from 08-24 to 08-31, with no config change in between.

This is not the shard-balance question. Pricing 26.6's real packing with master's duration table, 6/6 is 12175 test-seconds, about 4169s of wall time, 57.9% of the 7200s budget, and the lightest of its six shards; 26.7's and 26.8's 6/6 are heavier at 66.7% and 68.9% and lose nothing. The replay reproduces the job's own module list exactly, 145 of 145, and its printed Batches parallel weights line.

Two options, and I do not think either is free.

  1. Backport Bound the integration tests' nested containers by the job's memory limit #112984. The only candidate that acts during execution rather than teardown. It is 5 files, +1037/-133, and it changes container cgroup topology on 26.7 and 26.8, which currently pass. Its master merge at 2026-08-29T13:24:30Z is also where master's stall shape stops: 7 of 7 stall-shaped 6/6 failures between 00:10Z and 14:00Z that day, then 0 of 25 after 15:11Z.
  2. Mark the module is_sequential=True, as test_backup_restore_on_cluster/test_huge_concurrent_restore.py already is for the same reason. The sequential bucket runs -n 1, so the module gets the box to itself. Two caveats I should be straight about: it is not a clean cherry-pick, because master carries the four-field TC plus an existing entry for this module while 26.6 has the three-field one and no entry; and I have not measured the module's peak RSS, so the case rests on the instance count and that precedent. If you prefer this route I will measure it first and open the master-side change.

Not #117202, despite it looking like the obvious candidate. Its gdb fan-out runs only after cluster.shutdown() calls docker compose stop and 60s elapse, and at the freeze all three workers had tests in flight, with test_compact_parts_only followed by three more tests in its own module. It is worth backporting on its own merits, one file whose parent blob is byte-identical on all three release branches, but it does not explain this failure.

I am not hand-authoring a release-branch PR either way (@ pufit's rule, which you confirmed on #111910). Which of the two would you like?

Correction to my earlier comment. I said those attempt logs were purged. Age is not the explanation: 14 of 14 failures on 08-21 are retained while 25 of 33 on 08-29 are gone, and master is 32 of 32. Within run 33416538432 attempt 1, the failing 6/6 job has no log while its successful sibling from the same attempt returns 444626 bytes. Log survival tracks whether the runner survived, which is itself part of the picture.

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.

5 participants