Skip to content

Backport #129383 to 26.3: Require the same source and WRITE for queue after_processing - #133791

Merged
PedroTadim merged 1 commit into
26.3from
backport/26.3/129383
Nov 24, 2026
Merged

PedroTadim merged 1 commit into
26.3from
backport/26.3/129383

Conversation

@robot-clickhouse

@robot-clickhouse robot-clickhouse commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

Original pull-request #129383
Cherry-pick pull-request #133532

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

@robot-clickhouse robot-clickhouse added pr-backport Changes, backported to release branch. Do not use manually - automated use only! pr-critical-bugfix labels Nov 23, 2026
@clickhouse-gh

clickhouse-gh Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [d2a7484]

Summary: ✅

@PedroTadim
PedroTadim merged commit 12568ac into 26.3 Nov 24, 2026
42 checks passed
@PedroTadim
PedroTadim deleted the backport/26.3/129383 branch November 24, 2026 14:04
@groeneai

Copy link
Copy Markdown
Collaborator

Since this backport merged, both Stress test (amd_debug) runs on 26.3 aborted the server (12568acc, f5f8158b):

Macros.cpp:54: String DB::Macros::expand(const String &, MacroExpansionInfo &) const: Assertion `info.level == 0 || !info.expand_special_macros_only' failed.

The query is CREATE TABLE tq_base ... ENGINE = S3Queue(...) SETTINGS keeper_path = '/clickhouse/{database}/05366' from 05366_s3queue_metadata_mismatch_immutable_fields, which this backport added. On 26.3, createQueueStorage (registerQueueStorage.cpp:123 and :127) passes the same MacroExpansionInfo to two expand calls, so the second call starts with level != 0. Master fixed this in #105256 (commits dde44b6 and a73d58f, auto info_copy = info;), which never reached 26.3; 26.8 and newer have it. Only debug builds abort: the test passes in the asan stateless job on the same commits.

Cherry-picking those two commits into 26.3 (3 lines in registerQueueStorage.cpp) fixes it. Reverting this backport would also stop it, but takes the after_processing fix out of 26.3. I can't open PRs against release branches. Which do you prefer: the cherry-pick or the revert?

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-critical-bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants