v.21.4Improvements

Supported replication_alter_partitions_sync in clickhouse-copier and decreased default timeouts

Supported replication_alter_partitions_sync=1 setting in clickhouse-copier for moving partitions from helping table to destination. Decreased default timeouts. Fixes #21911. #21912 (turbo jason).
Added support for the replication_alter_partitions_sync=1 setting in clickhouse-copier, enabling synchronous replication when moving partitions from a helping table to the destination.

Why it matters

This feature addresses issues related to asynchronous replication during partition moves by clickhouse-copier. It ensures that partition alterations are synchronized in replicated tables, improving data consistency and reliability during partition moves. Additionally, default timeouts have been decreased to enhance operation responsiveness and stability.

How to use it

To enable synchronous replication during partition moves with clickhouse-copier, set the configuration option replication_alter_partitions_sync=1. This instructs the copier to wait for replication confirmation when moving partitions from the helping table to the destination.