Open Lokesh14120 opened 3 months ago
It looks like it could be related to acquiring locks, you can try this configuration to disable snapshot locking.
snapshot.locking.mode= none
https://stackoverflow.com/questions/75077687/debezium-mysql-connector-timing-out-during-initial-snapshot
We actually tried snapshot.locking.mode= none
only
This was the config file https://gist.github.com/Lokesh14120/dd38d7cc7d07d61576eff318c2d77384
@Lokesh14120 : see the above issue. It is a side effect of automatic restart.
it should have resumed processing data from the saved offset. If this feature isn't available yet, it should be considered for future implementation.
We ended up abandoning snapshotting entirely and relied on snapshot.mode: "schema_only"
to update data from the binlogs. Additionally, we wrote a script/SQL to backfill data into the ReplacingMergeTree from the MySQL engine.
@Mitrajit for MySQL, you can also use this https://github.com/Altinity/clickhouse-sink-connector/blob/develop/sink-connector/python/README.md This works well with snapshot.mode: "schema_only"
.
The debizium connector fails periodically and starts syncing everything again
This is the config file we set up https://gist.github.com/Lokesh14120/dd38d7cc7d07d61576eff318c2d77384
System specifications Cpu :- 8 core Ram :- 16 gb
This is the execution entry point
"sh", "-c", "java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005 -XX:ParallelGCThreads=4 -Xms6g -Xmx6g -Dlog4j2.configurationFile=log4j2.xml -jar /app.jar /config.yml com.altinity.clickhouse.debezium.embedded.ClickHouseDebeziumEmbeddedApplication"
These are the errors we encountered.