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

    https://github.com/apache/spark/pull/9264#discussion_r44565956
  
    --- Diff: core/src/main/scala/org/apache/spark/scheduler/JobWaiter.scala ---
    @@ -49,29 +51,14 @@ private[spark] class JobWaiter[T](
         dagScheduler.cancelJob(jobId)
       }
     
    -  override def taskSucceeded(index: Int, result: Any): Unit = synchronized 
{
    -    if (_jobFinished) {
    -      throw new UnsupportedOperationException("taskSucceeded() called on a 
finished JobWaiter")
    -    }
    +  override def taskSucceeded(index: Int, result: Any): Unit = {
    --- End diff --
    
    note that this does change behavior because `resultHandler` is no longer 
synchronized. Isn't this a potential problem, especially since the user can 
specify this?


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