-
Notifications
You must be signed in to change notification settings - Fork 28
Description
Replication between MySQL and ClickHouse using mysql_ch_replicator fails with
transaction not found error, even though the corresponding binlog file still exists in the MySQL data directory.
When replication stops due to this error, data goes missing in ClickHouse. I do not want to recreate ClickHouse table structures because I have already modified them, but I want to re-sync data, even from scratch, also fine, but without modifying the database and underlying tables in ClickHouse.
Steps to Reproduce
-
Start mysql_ch_replicator with replication configured.
-
Allow replication to run until MySQL binlog rotation occurs.
-
Restart or resume the replicator.
-
Observe error:
ERROR transaction not found ...
Expected Behavior
Replication should continue seamlessly as long as binlog files exist.
Ability to resync data from MySQL without dropping/recreating existing ClickHouse table structures.
Actual Behavior
Replication fails with transaction not found.
Data is missing in ClickHouse if replication is stopped.
Current recovery requires resync from scratch, including the schema with data, which is not ideal.
could you please suggest a way if data can resync without modifying the tables in clickhouse?