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

    https://github.com/apache/spark/pull/9264#discussion_r44576009
  
    --- 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 --
    
    I wonder... do we need to also put some sort of synchronization around 
`resultFunc` in `SimpleFutureAction` to ensure that the thread that reads the 
result can see all the writes?


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