You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by zsxwing <gi...@git.apache.org> on 2015/04/01 08:46:55 UTC

[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

GitHub user zsxwing opened a pull request:

    https://github.com/apache/spark/pull/5306

    [SPARK-6640][Core] Fix the race condition of creating HeartbeatReceiver and retrieving HeartbeatReceiver

    This PR moved the code of creating `HeartbeatReceiver` above the code of creating `schedulerBackend` to resolve the race condition.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/zsxwing/spark SPARK-6640

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/5306.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #5306
    
----
commit d7c250d53feb74ce4e1a827e73b806e237b70ab7
Author: zsxwing <zs...@gmail.com>
Date:   2015-04-01T06:44:30Z

    Fix the race condition of creating HeartbeatReceiver and retrieving HeartbeatReceiver

----


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by zsxwing <gi...@git.apache.org>.
Github user zsxwing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5306#discussion_r27575792
  
    --- Diff: core/src/main/scala/org/apache/spark/HeartbeatReceiver.scala ---
    @@ -71,12 +75,22 @@ private[spark] class HeartbeatReceiver(sc: SparkContext, scheduler: TaskSchedule
       }
       
       override def receiveWithLogging: PartialFunction[Any, Unit] = {
    -    case Heartbeat(executorId, taskMetrics, blockManagerId) =>
    -      val unknownExecutor = !scheduler.executorHeartbeatReceived(
    -        executorId, taskMetrics, blockManagerId)
    -      val response = HeartbeatResponse(reregisterBlockManager = unknownExecutor)
    -      executorLastSeen(executorId) = System.currentTimeMillis()
    -      sender ! response
    +    case RegisterTaskScheduler(scheduler) =>
    +      this.scheduler = scheduler
    +    case heartbeat @ Heartbeat(executorId, taskMetrics, blockManagerId) =>
    +      if (scheduler == null) {
    --- End diff --
    
    Right. It's a typo. Thank you for pointing it out.


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/5306#issuecomment-88388576
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/29525/
    Test PASSed.


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by zsxwing <gi...@git.apache.org>.
Github user zsxwing commented on the pull request:

    https://github.com/apache/spark/pull/5306#issuecomment-89338628
  
    > @zsxwing this looks fine, though a little funky because we send TaskScheduler and all of its pointers through Akka, though I don't see another simpler alternative.
    
    We can get TaskScheduler from SparkContext since HeartbeatReceiver has a pointer to SparkContext. I updated the codes to eliminate TaskScheduler from the message.


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/5306#issuecomment-89150977
  
    @zsxwing this looks fine, though a little funky because we send `TaskScheduler` and all of its pointers through Akka, though I don't see another simpler alternative. I will merge this once you address the minor comments.


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/5306#issuecomment-88370940
  
      [Test build #29525 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/29525/consoleFull) for   PR 5306 at commit [`d7c250d`](https://github.com/apache/spark/commit/d7c250d53feb74ce4e1a827e73b806e237b70ab7).


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/5306#issuecomment-88512610
  
      [Test build #29546 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/29546/consoleFull) for   PR 5306 at commit [`dd202c7`](https://github.com/apache/spark/commit/dd202c72fa54b0edbb58cc8a63d8ae2b10de2bf0).


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5306#discussion_r27713951
  
    --- Diff: core/src/main/scala/org/apache/spark/HeartbeatReceiver.scala ---
    @@ -71,12 +75,22 @@ private[spark] class HeartbeatReceiver(sc: SparkContext, scheduler: TaskSchedule
       }
       
       override def receiveWithLogging: PartialFunction[Any, Unit] = {
    -    case Heartbeat(executorId, taskMetrics, blockManagerId) =>
    -      val unknownExecutor = !scheduler.executorHeartbeatReceived(
    -        executorId, taskMetrics, blockManagerId)
    -      val response = HeartbeatResponse(reregisterBlockManager = unknownExecutor)
    -      executorLastSeen(executorId) = System.currentTimeMillis()
    -      sender ! response
    +    case RegisterTaskScheduler(scheduler) =>
    +      this.scheduler = scheduler
    +    case heartbeat @ Heartbeat(executorId, taskMetrics, blockManagerId) =>
    +      if (scheduler != null) {
    +        val unknownExecutor = !scheduler.executorHeartbeatReceived(
    +          executorId, taskMetrics, blockManagerId)
    +        val response = HeartbeatResponse(reregisterBlockManager = unknownExecutor)
    +        executorLastSeen(executorId) = System.currentTimeMillis()
    +        sender ! response
    +      } else {
    +        // Because Executor will sleep several seconds then send the first "Heartbeat", this case
    +        // rarely happens. However, if it really happens, log it and ask the executor to register
    +        // itself again.
    +        logWarning(s"Dropping $heartbeat because TaskScheduler has not been ready yet")
    --- End diff --
    
    is not ready yet


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by zsxwing <gi...@git.apache.org>.
Github user zsxwing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5306#discussion_r27628404
  
    --- Diff: core/src/main/scala/org/apache/spark/HeartbeatReceiver.scala ---
    @@ -71,12 +75,22 @@ private[spark] class HeartbeatReceiver(sc: SparkContext, scheduler: TaskSchedule
       }
       
       override def receiveWithLogging: PartialFunction[Any, Unit] = {
    -    case Heartbeat(executorId, taskMetrics, blockManagerId) =>
    -      val unknownExecutor = !scheduler.executorHeartbeatReceived(
    -        executorId, taskMetrics, blockManagerId)
    -      val response = HeartbeatResponse(reregisterBlockManager = unknownExecutor)
    -      executorLastSeen(executorId) = System.currentTimeMillis()
    -      sender ! response
    +    case RegisterTaskScheduler(scheduler) =>
    +      this.scheduler = scheduler
    +    case heartbeat @ Heartbeat(executorId, taskMetrics, blockManagerId) =>
    +      if (scheduler != null) {
    +        val unknownExecutor = !scheduler.executorHeartbeatReceived(
    +          executorId, taskMetrics, blockManagerId)
    +        val response = HeartbeatResponse(reregisterBlockManager = unknownExecutor)
    +        executorLastSeen(executorId) = System.currentTimeMillis()
    +        sender ! response
    +      } else {
    +        // Because Executor will sleep several seconds then send the first "Heartbeat", this case
    +        // rarely happens. However, if it really happens, log it and ask the executor to register
    +        // itself again.
    +        logWarning(s"Dropping $heartbeat because TaskScheduler has not been ready yet")
    +        sender ! HeartbeatResponse(reregisterBlockManager = true)
    --- End diff --
    
    For `reregistering`: Because Executor uses `askWithReply` to send `Heartbeat`, I want to send something back to Executor to avoid timeout.


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by viirya <gi...@git.apache.org>.
Github user viirya commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5306#discussion_r27573736
  
    --- Diff: core/src/main/scala/org/apache/spark/HeartbeatReceiver.scala ---
    @@ -71,12 +75,22 @@ private[spark] class HeartbeatReceiver(sc: SparkContext, scheduler: TaskSchedule
       }
       
       override def receiveWithLogging: PartialFunction[Any, Unit] = {
    -    case Heartbeat(executorId, taskMetrics, blockManagerId) =>
    -      val unknownExecutor = !scheduler.executorHeartbeatReceived(
    -        executorId, taskMetrics, blockManagerId)
    -      val response = HeartbeatResponse(reregisterBlockManager = unknownExecutor)
    -      executorLastSeen(executorId) = System.currentTimeMillis()
    -      sender ! response
    +    case RegisterTaskScheduler(scheduler) =>
    +      this.scheduler = scheduler
    +    case heartbeat @ Heartbeat(executorId, taskMetrics, blockManagerId) =>
    +      if (scheduler == null) {
    --- End diff --
    
    Looks weird here. I think it should be `if (scheduler != null)`?


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by sryza <gi...@git.apache.org>.
Github user sryza commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5306#discussion_r27619143
  
    --- Diff: core/src/main/scala/org/apache/spark/HeartbeatReceiver.scala ---
    @@ -71,12 +75,22 @@ private[spark] class HeartbeatReceiver(sc: SparkContext, scheduler: TaskSchedule
       }
       
       override def receiveWithLogging: PartialFunction[Any, Unit] = {
    -    case Heartbeat(executorId, taskMetrics, blockManagerId) =>
    -      val unknownExecutor = !scheduler.executorHeartbeatReceived(
    -        executorId, taskMetrics, blockManagerId)
    -      val response = HeartbeatResponse(reregisterBlockManager = unknownExecutor)
    -      executorLastSeen(executorId) = System.currentTimeMillis()
    -      sender ! response
    +    case RegisterTaskScheduler(scheduler) =>
    +      this.scheduler = scheduler
    +    case heartbeat @ Heartbeat(executorId, taskMetrics, blockManagerId) =>
    +      if (scheduler != null) {
    +        val unknownExecutor = !scheduler.executorHeartbeatReceived(
    +          executorId, taskMetrics, blockManagerId)
    +        val response = HeartbeatResponse(reregisterBlockManager = unknownExecutor)
    +        executorLastSeen(executorId) = System.currentTimeMillis()
    +        sender ! response
    +      } else {
    +        // Because Executor will sleep several seconds then send the first "Heartbeat", this case
    +        // rarely happens. However, if it really happens, log it and ask the executor to register
    +        // itself again.
    +        logWarning(s"Dropping $heartbeat because TaskScheduler has not been ready yet")
    +        sender ! HeartbeatResponse(reregisterBlockManager = true)
    --- End diff --
    
    Why the need for reregistering vs. just ignoring the heartbeat?


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/5306#issuecomment-89369342
  
      [Test build #29677 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/29677/consoleFull) for   PR 5306 at commit [`840399d`](https://github.com/apache/spark/commit/840399d43218682cff594e54b3f3aac977cdb3f9).
     * This patch **passes all tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.
     * This patch does not change any dependencies.


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/5306#issuecomment-88388558
  
      [Test build #29525 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/29525/consoleFull) for   PR 5306 at commit [`d7c250d`](https://github.com/apache/spark/commit/d7c250d53feb74ce4e1a827e73b806e237b70ab7).
     * This patch **passes all tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.
     * This patch does not change any dependencies.


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/5306#issuecomment-88540218
  
      [Test build #29546 has finished](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/29546/consoleFull) for   PR 5306 at commit [`dd202c7`](https://github.com/apache/spark/commit/dd202c72fa54b0edbb58cc8a63d8ae2b10de2bf0).
     * This patch **passes all tests**.
     * This patch merges cleanly.
     * This patch adds no public classes.
     * This patch does not change any dependencies.


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/spark/pull/5306


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5306#discussion_r27714109
  
    --- Diff: core/src/main/scala/org/apache/spark/HeartbeatReceiver.scala ---
    @@ -71,12 +75,22 @@ private[spark] class HeartbeatReceiver(sc: SparkContext, scheduler: TaskSchedule
       }
       
       override def receiveWithLogging: PartialFunction[Any, Unit] = {
    -    case Heartbeat(executorId, taskMetrics, blockManagerId) =>
    -      val unknownExecutor = !scheduler.executorHeartbeatReceived(
    -        executorId, taskMetrics, blockManagerId)
    -      val response = HeartbeatResponse(reregisterBlockManager = unknownExecutor)
    -      executorLastSeen(executorId) = System.currentTimeMillis()
    -      sender ! response
    +    case RegisterTaskScheduler(scheduler) =>
    +      this.scheduler = scheduler
    +    case heartbeat @ Heartbeat(executorId, taskMetrics, blockManagerId) =>
    +      if (scheduler != null) {
    +        val unknownExecutor = !scheduler.executorHeartbeatReceived(
    +          executorId, taskMetrics, blockManagerId)
    +        val response = HeartbeatResponse(reregisterBlockManager = unknownExecutor)
    +        executorLastSeen(executorId) = System.currentTimeMillis()
    +        sender ! response
    +      } else {
    +        // Because Executor will sleep several seconds then send the first "Heartbeat", this case
    --- End diff --
    
    sleep several seconds before sending


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/5306#issuecomment-89369375
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/29677/
    Test PASSed.


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by rxin <gi...@git.apache.org>.
Github user rxin commented on the pull request:

    https://github.com/apache/spark/pull/5306#issuecomment-90256298
  
    Should this be in 1.3.2? Seems like people are hitting 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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on a diff in the pull request:

    https://github.com/apache/spark/pull/5306#discussion_r27714088
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkContext.scala ---
    @@ -356,11 +356,17 @@ class SparkContext(config: SparkConf) extends Logging with ExecutorAllocationCli
       val sparkUser = Utils.getCurrentUserName()
       executorEnvs("SPARK_USER") = sparkUser
     
    +  // We need to register "HeartbeatReceiver" before "createTaskScheduler" because Executor will
    +  // retrieve "HeartbeatReceiver" in the constructor.
    --- End diff --
    
    Great, mind adding `(SPARK-6640)` at the end?


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by andrewor14 <gi...@git.apache.org>.
Github user andrewor14 commented on the pull request:

    https://github.com/apache/spark/pull/5306#issuecomment-89387258
  
    LGTM merging this into master 1.3 thanks. The new solution looks much better!


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by SparkQA <gi...@git.apache.org>.
Github user SparkQA commented on the pull request:

    https://github.com/apache/spark/pull/5306#issuecomment-89338682
  
      [Test build #29677 has started](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/29677/consoleFull) for   PR 5306 at commit [`840399d`](https://github.com/apache/spark/commit/840399d43218682cff594e54b3f3aac977cdb3f9).


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

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


[GitHub] spark pull request: [SPARK-6640][Core] Fix the race condition of c...

Posted by AmplabJenkins <gi...@git.apache.org>.
Github user AmplabJenkins commented on the pull request:

    https://github.com/apache/spark/pull/5306#issuecomment-88540236
  
    Test PASSed.
    Refer to this link for build results (access rights to CI server needed): 
    https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/29546/
    Test PASSed.


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

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