Skip to content

Backport #120407 to 26.10: [SECURITY] Mask credentials embedded in HTTP URIs - #126165

Merged
hanfei1991 merged 1 commit into
26.10from
backport/26.10/120407
Oct 16, 2026
Merged

hanfei1991 merged 1 commit into
26.10from
backport/26.10/120407

Conversation

@robot-ch-test-poll3

@robot-ch-test-poll3 robot-ch-test-poll3 commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Original pull-request #120407

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

@robot-ch-test-poll3 robot-ch-test-poll3 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 Oct 16, 2026
@clickhouse-gh

clickhouse-gh Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [BackportPR], commit [80a2e52]

Summary: ❌

job_name test_name status info comment
Integration tests (amd_tsan, 1/8) FAIL
test_modify_engine_on_restart/test_lazy_load_tables.py::test_restore_replica_with_lazy_load_tables FAIL cidb
test_modify_engine_on_restart/test_ordinary.py::test_modify_engine_on_restart_clears_transaction_metadata FAIL cidb

@hanfei1991

Copy link
Copy Markdown
Member

@groeneai Why the CI test failed? Is it relate to this PR?

@groeneai

Copy link
Copy Markdown
Collaborator

It is not related to this PR. The backport only touches HTTP URI credential masking, while both failed tests in Integration tests (amd_tsan, 1/8) are killed by the same TSan data race:

  • read: MergeTreeData::refreshStatistics -> IMergeTreeDataPart::loadStatistics -> loadStatisticsPacked -> DataPartStorageOnDiskBase::getRelativePath
  • write: StorageReplicatedMergeTree::restoreMetadataInZooKeeper -> forcefullyMovePartToDetachedAndRemoveFromMemory -> renameToDetached -> DataPartStorageOnDiskBase::rename

The background statistics refresh reads part paths without a lock since #124420, which 26.10 already contains. TSan aborts the server in the middle of the restore: test_restore_replica_with_lazy_load_tables loses the connection on SYSTEM RESTORE REPLICA, and in test_modify_engine_on_restart_clears_transaction_metadata the restarted server keeps the table readonly (Code: 242 on OPTIMIZE).

The same failure is on master (13 commits since 2026-10-15, e.g. 198cc17a) and on 7 other PRs. The fix is #125927 (mine, open, waiting for review): it pauses the statistics refresh while the replica restore and RENAME TABLE rewrite part paths. It should be backported wherever #124420 goes, 26.10 included.

@hanfei1991
hanfei1991 merged commit 63313bc into 26.10 Oct 16, 2026
46 of 49 checks passed
@hanfei1991
hanfei1991 deleted the backport/26.10/120407 branch October 16, 2026 12:41
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