You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by vanzin <gi...@git.apache.org> on 2017/03/01 00:10:12 UTC

[GitHub] spark pull request #16959: [SPARK-19631][CORE] OutputCommitCoordinator shoul...

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

    https://github.com/apache/spark/pull/16959#discussion_r103583438
  
    --- Diff: core/src/test/scala/org/apache/spark/scheduler/OutputCommitCoordinatorSuite.scala ---
    @@ -195,6 +195,17 @@ class OutputCommitCoordinatorSuite extends SparkFunSuite with BeforeAndAfter {
         sc.runJob(rdd, OutputCommitFunctions(tempDir.getAbsolutePath).callCanCommitMultipleTimes _,
            0 until rdd.partitions.size)
       }
    +
    +  test("SPARK-19631: Do not allow failed attempts to be authorized for committing") {
    +    val stage: Int = 1
    +    val partition: Int = 1
    +    val failedAttempt: Int = 0
    +    outputCommitCoordinator.stageStart(stage, maxPartitionId = 1)
    +    outputCommitCoordinator.taskCompleted(stage, partition, attemptNumber = failedAttempt,
    +      reason = ExecutorLostFailure("0", exitCausedByApp = true, None))
    +    assert(!outputCommitCoordinator.canCommit(stage, partition, failedAttempt))
    --- End diff --
    
    Yes, that seems accurate. In my example above, this change wouldn't change anything, since it's solving a different race (driver would not allow E1 to commit if it thinks it's dead).


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