Checkpoints
A checkpoint is the log position of the last source transaction TwinCommit applied. It lives in the target, in the schema named by state_schema (default twincommit), and is updated in the same transaction as the data.
Checkpoint tables
Section titled “Checkpoint tables”| Table | Contents |
|---|---|
twincommit.checkpoint |
One row per pipeline: last applied log position and commit time |
twincommit.table_state |
One row per replicated table: state (snapshotting, streaming, broken), snapshot position, last error |
Positions are opaque to the target. Only the source connector interprets them, for example as an LSN on Db2, an SCN on Oracle or an LSN on PostgreSQL and SQL Server.
Inspecting
Section titled “Inspecting”twincommit status -config pipeline.yamlor, while run is active, GET /status on the metrics address.
Resetting
Section titled “Resetting”To start a table over, re-snapshot it:
twincommit snapshot -config pipeline.yaml -tables SALES.ORDERSLog retention
Section titled “Log retention”The source must keep its log files, either active or retrievable from the archive, until TwinCommit has read them. Size your archive retention for the longest outage you want to survive without re-snapshotting.