During a batch apex job I have noticed the number of Total Batches is changing, lowering. It starts high and then as the job progresses the number starts to lower. It would also appear that the batch apex job is missing some of the records that should have been originally queried and are never being processed by the batch apex class.
Here are some images showing the drop as the batch job progresses:
1670 Total Batches
1623 Total Batches
1527 Total Batches after complete
The difference is 143 batches or 29,000 records which is exactly how many records are not being processed.
This is bizarre. Any ideas?