Details
Description
RDD.getPreferredLocations() and RDD.getPartitions() may throw exceptions but the DAGScheduler does not guard against this, leaving it vulnerable to crashing and stopping the SparkContext if exceptions occur there.
We should fix this by adding more try blocks around these calls in DAGScheduler.