Skip to content

Backport #128955 to 26.3: Hide secrets in system.s3_queue_settings and system.azure_queue_settings - #129469

Merged
Algunenano merged 2 commits into
26.3from
backport/26.3/128955
Nov 5, 2026
Merged

Algunenano merged 2 commits into
26.3from
backport/26.3/128955

Conversation

@robot-clickhouse-ci-2

Copy link
Copy Markdown
Contributor

Original pull-request #128955
Cherry-pick pull-request #129302

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

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

clickhouse-gh Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [0751951]

Summary: ✅

The new test `05493_s3queue_settings_system_table_hide_secrets` reads
`system.s3_queue_settings`, which calls `StorageObjectStorageQueue::getSettings`
for every queue table on the server. When a concurrent `DROP` shuts a queue
table down, `shutdown` resets `files_metadata` while `startup_finished` stays
set, and `getTableMetadata` throws the logical error `Files metadata is empty`.
The same failure happened on the backport of this PR to the private
release/26.4 branch.

This is the part of #113695 that
`getSettings` needs (26.3 does not have that PR): `files_metadata` is set and
reset under `mutex`, `tryGetFilesMetadata` takes one snapshot of it, and
`getSettings` returns the default settings when the table is shut down.

PR: #129469

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Algunenano
Algunenano merged commit 3a815aa into 26.3 Nov 5, 2026
36 checks passed
@Algunenano
Algunenano deleted the backport/26.3/128955 branch November 5, 2026 17:04
leshikus pushed a commit that referenced this pull request Nov 13, 2026
The new test `05493_s3queue_settings_system_table_hide_secrets` reads
`system.s3_queue_settings`, which calls `StorageObjectStorageQueue::getSettings`
for every queue table on the server. When a concurrent `DROP` shuts a queue
table down, `shutdown` resets `files_metadata` while `startup_finished` stays
set, and `getTableMetadata` throws the logical error `Files metadata is empty`.
The same failure happened on the backport of this PR to the private
release/26.4 branch.

This is the part of #113695 that
`getSettings` needs (26.3 does not have that PR): `files_metadata` is set and
reset under `mutex`, `tryGetFilesMetadata` takes one snapshot of it, and
`getSettings` returns the default settings when the table is shut down.

PR: #129469

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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