Skip to content

Commit

Permalink
Only run lightweight sync between replicas during restore [DDB-1415]
Browse files Browse the repository at this point in the history
Lightweight replica sync skips parts merges, part mutations, metadata alter,
part cloning from other shards, and pinned part UUID sync. This should be good
enough for the cluster to be in a working state, leaving the remaining work to
be done asynchronously.
  • Loading branch information
aris-aiven committed Nov 27, 2024
1 parent 9b4c6fc commit 26217ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astacus/coordinator/plugins/clickhouse/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ async def run_step(self, cluster: Cluster, context: StepsContext) -> None:
def _sync_replicas(client: ClickHouseClient) -> Iterator[Awaitable[None]]:
yield from (
execute_with_timeout(
client, self.sync_timeout, f"SYSTEM SYNC REPLICA {table.escaped_sql_identifier}".encode()
client, self.sync_timeout, f"SYSTEM SYNC REPLICA {table.escaped_sql_identifier} LIGHTWEIGHT".encode()
)
for table in manifest.tables
if table.is_replicated
Expand Down

0 comments on commit 26217ed

Please sign in to comment.