Description
CheckpointWriteHandler has a built in retry mechanism. However SPARK-14930/SPARK-13693 put in a fix to de-allocate the fs object, yet initialises it in the wrong place for the while loop, and therefore on attempt 2 it fails with a NPE.