Skip to content

Replication stops with missing transaction; need option to reload data without schema drop #187

@simplecrm-github

Description

@simplecrm-github

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

  1. Start mysql_ch_replicator with replication configured.

  2. Allow replication to run until MySQL binlog rotation occurs.

  3. Restart or resume the replicator.

  4. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions