mridulm commented on code in PR #46571:
URL: https://github.com/apache/spark/pull/46571#discussion_r1599499818


##########
core/src/main/scala/org/apache/spark/SparkContext.scala:
##########
@@ -373,7 +373,7 @@ class SparkContext(config: SparkConf) extends Logging {
 
   private[spark] def cleaner: Option[ContextCleaner] = _cleaner
 
-  private[spark] var checkpointDir: Option[String] = None
+  private[spark] var checkpointDir: Option[String] = 
conf.getOption(CHECKPOINT_DIR.key)

Review Comment:
   Initializing the variable is not sufficient.
   Something like this perhaps:
   
   ```suggestion
     private[spark] var checkpointDir: Option[String] = None
     conf.getOption(CHECKPOINT_DIR).foreach(setCheckpointDir)
   ```



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to