Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
MoeE
Partner - Specialist
Partner - Specialist

How to resume capturing changes after corrupted change tables due to failover

Hi,

 

A client has presented the scenario where after their source MS-CDC SQL Server fails over to their secondary node, the change tables are corrupted. They asked if there is a way to resume capturing changes from the correct point in time without running a full load.

Is it perhaps by design that the secondary node does not contain change table data or it will not replicate the primary node change table data? Are the sql server cdc tables replicated to the secondary node?

 

Any thoughts on this/general things to look into? Would be appreciated. Thank you.

 

Kind regards,

Mohammed

Labels (2)
2 Replies
john_wang
Support
Support

Hello Mohammed, @MoeE 

At the moment, it’s difficult to provide further analysis because there’s no detailed information about the reported change table corruption.

In a SQL Server high-availability environment, MS-CDC is supported during failover. However, the CDC capture and cleanup jobs may need to be re-created or re-enabled on the new primary replica after the failover.

Importantly, the LSN continues to increase after failover and is not reset. Therefore, the task can either be resumed or restarted from a specific LSN or timestamp.

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!
DesmondWOO
Support
Support

Hi @MoeE ,

You may try creating a new task using MS‑Replication, which allows Qlik Replicate to retrieve changes from the transaction log or backup files at an earlier timestamp. However, please test this approach first — for example, by creating a STORE CHANGES ONLY task to verify that the captured changes are correct. Additionally, be aware that duplicate records may occur when switching the task back to an MS‑CDC configuration

Regards,
Desmond

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!