CXCP-924: XCP sync fails due to a batch error
Issue
xcp sync will fail with the following errors present in xcp.log
xcp sync batch (compare batches) Traceback (most recent call last):
File "sched.pyx", line 646, in sched.Engine._runTasks
File "sched.pyx", line 1695, in sched.Task.run
File "sync.py", line 1174, in gSyncBatch
File "idx.py", line 441, in reindex