CDC occasionally fails on the cdc cleanup job with errors that look like:
[dbo_myTable_CT] where __$start_lsn < @p2 '. The error returned was 1205: 'Transaction (Process ID 79) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction.'. Use the action and error to determine the cause of the failure and resubmit the request. [SQLSTATE 01000] (Message 22852). The step succeeded.
However, the sql agent job ultimately shows as having successfully completed. Aside from researching the root cause of the deadlock error, I would like to know where to look via a fn_* call, query, etc. to determine if some, all, or none of the data is actually getting purged by the cleanup job.
Please advise.