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

    https://github.com/apache/spark/pull/42#discussion_r10368594
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkEnv.scala ---
    @@ -164,9 +167,18 @@ object SparkEnv extends Logging {
           }
         }
     
    -    val blockManagerMaster = new BlockManagerMaster(registerOrLookup(
    -      "BlockManagerMaster",
    -      new BlockManagerMasterActor(isLocal, conf)), conf)
    +    // Listen for block manager registration
    +    val blockManagerListener = new BlockManagerRegistrationListener
    +    lazy val blockManagerMasterActor = {
    +      val actor = new BlockManagerMasterActor(isLocal, conf)
    +      actor.registerListener(blockManagerListener)
    +      actor
    +    }
    +
    +    val blockManagerMaster =
    +      new BlockManagerMaster(registerOrLookup("BlockManagerMaster", 
blockManagerMasterActor), conf)
    +    blockManagerMaster.registrationListener = Some(blockManagerListener)
    --- End diff --
    
    No reason. I will update it.


---
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.
---

Reply via email to