When repartition is required, we also make sure to do checkpointing. This is the only way to eliminate inconsistent lineage.