Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/9428#discussion_r44315469
--- Diff:
core/src/main/scala/org/apache/spark/rdd/ReliableRDDCheckpointData.scala ---
@@ -31,12 +31,26 @@ import org.apache.spark.util.SerializableConfiguration
private[spark] class ReliableRDDCheckpointData[T: ClassTag](@transient
private val rdd: RDD[T])
extends RDDCheckpointData[T](rdd) with Logging {
+ import CheckpointState._
+
// The directory to which the associated RDD has been checkpointed to
// This is assumed to be a non-local path that points to some reliable
storage
- private val cpDir: String =
- ReliableRDDCheckpointData.checkpointPath(rdd.context, rdd.id)
+ private val cpDir: String = {
+ val _cpDir = ReliableRDDCheckpointData.checkpointPath(rdd.context,
rdd.id)
.map(_.toString)
- .getOrElse { throw new SparkException("Checkpoint dir must be
specified.") }
+ .getOrElse {
+ throw new SparkException("Checkpoint dir must be specified.")
+ }
--- End diff --
can you indent these 2 lines
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]