Github user aarondav commented on a diff in the pull request:

    https://github.com/apache/spark/pull/771#discussion_r17858937
  
    --- Diff: core/src/main/scala/org/apache/spark/deploy/master/Master.scala 
---
    @@ -129,23 +129,25 @@ private[spark] class Master(
         masterMetricsSystem.start()
         applicationMetricsSystem.start()
     
    -    persistenceEngine = RECOVERY_MODE match {
    +    val (persistenceEngine_, leaderElectionAgent_) = RECOVERY_MODE match {
           case "ZOOKEEPER" =>
             logInfo("Persisting recovery state to ZooKeeper")
    -        new 
ZooKeeperPersistenceEngine(SerializationExtension(context.system), conf)
    +        val zkFactory = new ZooKeeperRecoveryModeFactory(conf)
    +        (zkFactory.createPersistenceEngine(), 
zkFactory.createLeaderElectionAgent(this))
           case "FILESYSTEM" =>
             logInfo("Persisting recovery state to directory: " + RECOVERY_DIR)
    --- End diff --
    
    Can remove RECOVERY_DIR from this file if you change this log statement. 
Could log the actual directory within FileSystemPersistenceAgent.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to