Adding checkpoint setup before checkpointing after repartitioning.