Skip to content

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.

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.

Terminal window
twincommit status -config pipeline.yaml

or, while run is active, GET /status on the metrics address.

To start a table over, re-snapshot it:

Terminal window
twincommit snapshot -config pipeline.yaml -tables SALES.ORDERS

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.