Skip to content

Fix DatabaseReplicated for database_replicated_enforce_synchronous_settings=1#81564

Merged
azat merged 2 commits intoClickHouse:masterfrom
azat:rdb-database_replicated_enforce_synchronous_settings-fix
Jun 12, 2025
Merged

Fix DatabaseReplicated for database_replicated_enforce_synchronous_settings=1#81564
azat merged 2 commits intoClickHouse:masterfrom
azat:rdb-database_replicated_enforce_synchronous_settings-fix

Conversation

@azat
Copy link
Copy Markdown
Member

@azat azat commented Jun 10, 2025

Changelog category (leave one):

  • Bug Fix (user-visible misbehavior in an official stable release)

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

Fix DatabaseReplicated for database_replicated_enforce_synchronous_settings=1

The problem is in combination of database_replicated_enforce_synchronous_settings
(since it uses different path in zookeeper, "synced" over "finished")
and when DatabaseReplicated already received some queries before the
replica has been created, since in this case it is responsibility of
DatabaseReplicated to mark those entries as finished, and it knows only
about "finished" before, and it leads to indefinite wait from the
initiator.

Fixes: #81382
Fixes: #81559

database_replicated_enforce_synchronous_settings introduced in: #37198

@azat azat requested a review from tavplubix June 10, 2025 07:04
@clickhouse-gh
Copy link
Copy Markdown
Contributor

clickhouse-gh bot commented Jun 10, 2025

Workflow [PR], commit [bc3d379]

@clickhouse-gh clickhouse-gh bot added the pr-bugfix Pull request with bugfix, not backported by default label Jun 10, 2025
@azat azat force-pushed the rdb-database_replicated_enforce_synchronous_settings-fix branch from b2aac5a to a89a451 Compare June 10, 2025 07:36
…ttings=1

The problem is in combination of database_replicated_enforce_synchronous_settings
(since it uses different path in zookeeper, "synced" over "finished")
and when DatabaseReplicated already received some queries before the
replica has been created, since in this case it is responsibility of
DatabaseReplicated to mark those entries as finished, and it knows only
about "finished" before, and it leads to undefinite wait from the
initiator.
@azat azat force-pushed the rdb-database_replicated_enforce_synchronous_settings-fix branch from a89a451 to bc3d379 Compare June 10, 2025 07:47
@azat azat marked this pull request as ready for review June 10, 2025 11:10
@azat azat enabled auto-merge June 12, 2025 17:53
@azat azat added this pull request to the merge queue Jun 12, 2025
Merged via the queue into ClickHouse:master with commit b849c9d Jun 12, 2025
119 of 121 checks passed
@azat azat deleted the rdb-database_replicated_enforce_synchronous_settings-fix branch June 12, 2025 18:09
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

3 participants