Patched a SQL 2016 Standard Edition instance to the latest SP3 (build 13.0.6300.2)
Started to get errors such as
Change Tracking autocleanup failed on side table of "MyTableName". If the failure persists, use sp_flush_CT_internal_table_on_demand to clean up expired records from its side table.
for all the CT-enabled tables on a database
If I try to use sp_flush_CT_internal_table_on_demand, I get
Cleanup Watermark = 2619327620
Internal Change Tracking table name : change_tracking_35856286
Msg 8114, Level 16, State 1, Procedure sp_add_ct_history, Line 0 [Batch Start Line 2]
Error converting data type numeric to int.
Total rows deleted: 0.
Total rows deleted: 0.
or trying sp_flush_commit_table_on_demand
The value returned by change_tracking_hardened_cleanup_version() is 2618225650.
The value returned by safe_cleanup_version() is 2619327620.
(1000 rows affected)
Msg 8114, Level 16, State 1, Procedure sp_add_ct_history, Line 0 [Batch Start Line 5]
Error converting data type bigint to int.
Notice how the version numbers are larger than what can be handled by an int
Luckily this is a QA version of the database. On Production which is still at SP2 CU17 (build 13.0.5888.1), CT clean up works without error and running those 2 individual clean up procs as above are fine.
Has anyone else experienced the same error, with large version numbers?
Any resolutions?