I have a database that is part of an Always On Availability Group. This database also participates in transactional replication on SQL Server 2022 for Attunity CDC. In the Availability Group configuration, the backup preference is set to Primary, and the secondary replica is not readable. Attunity CDC is configured to work only with transaction log backup files.
A transaction log backup for this database was accidentally initiated on the secondary replica, but according to the Availability Group backup preference settings, the backup was actually created on the primary replica.
As a result, the Attunity CDC task stopped and did not continue processing. The log contains the following information:
I copied the backup metadata for that log backup from the msdb database on the secondary replica to the msdb database on the primary replica, and then tried to restart the Attunity task. Unfortunately, the task stopped again at the same point and did not continue.
At the moment, it is unclear what is causing this behavior.
One difference I noticed between the backup files is that the problematic backup file does not contain a value for LastValidRestoreTime. This behavior is normal for SQL Server, but it is possible that Attunity stops at this point and is unable to continue processing
Has anyone encountered a similar issue or has any suggestions on how to resolve it?