Skip to content

fix data race in DatabaseReplicated#93709

Merged
alexey-milovidov merged 1 commit intomasterfrom
chesema-fix-race-ddlworke
Jan 11, 2026
Merged

fix data race in DatabaseReplicated#93709
alexey-milovidov merged 1 commit intomasterfrom
chesema-fix-race-ddlworke

Conversation

@CheSema
Copy link
Copy Markdown
Member

@CheSema CheSema commented Jan 8, 2026

Fixes #92315

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

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

...

Documentation entry for user-facing changes

  • Documentation is written (mandatory for new features)

@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Jan 8, 2026

Workflow [PR], commit [e79ad81]

Summary:

job_name test_name status info comment
Stateless tests (arm_asan, targeted) failure
03238_create_or_replace_view_atomically_with_replicated_engine FAIL cidb, issue
Stateless tests (amd_msan, parallel, 2/2) failure
01825_new_type_json_missed_values FAIL cidb
Some queries hung FAIL cidb

@clickhouse-gh clickhouse-gh bot added the pr-ci label Jan 8, 2026
createDatabaseNodesInZooKeeper(current_zookeeper);
}

replica_path = fs::path(zookeeper_path) / "replicas" / getFullReplicaName();
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The race was here: replica_path is being changed when it already could be read in many others paces.
The fix is simple: this field is just a constant.

@alexey-milovidov
Copy link
Copy Markdown
Member

@CheSema, does it fix #93659?
You can add your fix to my pull request, so it will be properly labeled (critical bugfix) and tested.

@alexey-milovidov alexey-milovidov merged commit fb3b900 into master Jan 11, 2026
127 of 132 checks passed
@alexey-milovidov alexey-milovidov deleted the chesema-fix-race-ddlworke branch January 11, 2026 14:54
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jan 11, 2026
@rschu1ze
Copy link
Copy Markdown
Member

Let's backport this PR to older versions?

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

Labels

pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ThreadSanitizer: data race on replica_path in DatabaseReplicated

5 participants