Switching from initial load to continuous replication of YugabyteDB sources
When you use an automated pipeline wizard, switching from initial load to continuous replication is handled automatically. In all other cases, you must configure the switch manually.
Switching from initial load to continuous real-time replication of YugabyteDB sources
Do the following to make continuous real-time replication pick up where the initial load left off.
Before running the initial load application, get the current write-ahead log write location or transaction log write location. Run the following command on the source database using an appropriate database client and record the value returned:
SELECT pg_current_wal_lsn();
When creating the continuous real-time replication application:
Enable recovery.
In Yugabyte Reader, set Start LSN to the LSN you recorded before performing the initial load .
If the target writer has an Ignorable Exception Code property, set it as follows:
DUPLICATE_ROW_EXISTS, NO_OP_UPDATE, NO_OP_DELETE
If the target writer has an Ignorable Exception Code property, when you know all open transactions have completed and been written to the target, stop and undeploy the application, edit the target, clear the Ignorable Exception Code value, save, and deploy and start the application. Since recovery is enabled, writing will resume where it left off, and there should be no missing or duplicate rows.