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

    https://github.com/apache/spark/pull/15505#discussion_r97695455
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala
 ---
    @@ -602,6 +619,21 @@ class CoarseGrainedSchedulerBackend(scheduler: 
TaskSchedulerImpl, val rpcEnv: Rp
         Future.successful(false)
     }
     
    -private[spark] object CoarseGrainedSchedulerBackend {
    +private[spark] object CoarseGrainedSchedulerBackend extends Logging {
       val ENDPOINT_NAME = "CoarseGrainedScheduler"
    +
    +  // abort TaskSetManager without exception
    +  private[scheduler] def abortTaskSetManager(
    +      scheduler: TaskSchedulerImpl,
    +      taskId: Long,
    +      msg: => String,
    +      exception: Option[Throwable] = None): Unit = {
    +    scheduler.taskIdToTaskSetManager.get(taskId).foreach { taskSetMgr =>
    +      try {
    +        taskSetMgr.abort(msg, exception)
    --- End diff --
    
    You said the problem But we ensure that the PR will not be able to 
introduce this issue. Although I just abstracted some code into a method only, 
did not change the order of its implementation, we insured, I still add a
     lock on the scheduler object.


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

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

Reply via email to