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

    https://github.com/apache/spark/pull/4066#discussion_r24048906
  
    --- Diff: 
core/src/test/scala/org/apache/spark/scheduler/DAGSchedulerSuite.scala ---
    @@ -766,5 +753,10 @@ class DAGSchedulerSuite extends FunSuiteLike  with 
BeforeAndAfter with LocalSpar
         assert(scheduler.shuffleToMapStage.isEmpty)
         assert(scheduler.waitingStages.isEmpty)
       }
    +
    +  // Nothing in this test should break if the task info's fields are null, 
but
    +  // OutputCommitCoordinator requires the task info itself to not be null.
    +  private def createFakeTaskInfo(): TaskInfo = mock(classOf[TaskInfo])
    --- End diff --
    
    Actually, nevermind: it's actually needed by DAGScheduler in order to get 
the task attempt number.  Maybe we can just generate an actual TaskInfo object 
instead of using Mockito.


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