Hi,
I have a use-case where I need to start debezium from an offset. I have recorded an offset from a binlog file earlier. I am using a customOffsetStore based on the MemoryOffsetBackingStore and FileDatabaseHistory for dbhistory.
Here is what I did to test resuming from the pre-recorded offset:
- I deleted all the dbhistory files that had been created locally.
- I started Debezium in snapshot_mode=schema_only. I verified that the dbhistory file had been generated
- Then I restarted the connector, loading the offset values that I had previously recorded.
- Debezium gave the following message:
"MySqlSnapshotChangeEventSource.getSnapshottingTask: A previous offset indicating a completed snapshot has been found. Neither schema nor data will be snapshotted."
Followed by the error after a few lines:
"MySqlStreamingChangeEventSource.informAboutUnknownTableIfRequired: Encountered change event {<event>} at offset {<supplied_offset>} for table {xyz} whose schema isn't known to this connector. One possible cause is an incomplete database history topic. Take a new snapshot in this case"
Can anyone help me regarding this error?