This sentence reads a little weird.  Move "if spark.shuffle.spill is true," to the front?