mridulm commented on code in PR #46571: URL: https://github.com/apache/spark/pull/46571#discussion_r1602415826
########## core/src/main/scala/org/apache/spark/SparkContext.scala: ########## @@ -374,6 +374,7 @@ class SparkContext(config: SparkConf) extends Logging { private[spark] def cleaner: Option[ContextCleaner] = _cleaner private[spark] var checkpointDir: Option[String] = None + config.getOption(CHECKPOINT_DIR.key).foreach(setCheckpointDir) Review Comment: We should add a test - this NPE would have surfaced there. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org