Skip to content

Conversation

@JoshRosen
Copy link
Contributor

This is a backport of #8544 to branch-1.4 for inclusion in 1.4.2.

…mitCoordinator

When speculative execution is enabled, consider a scenario where the authorized committer of a particular output partition fails during the OutputCommitter.commitTask() call. In this case, the OutputCommitCoordinator is supposed to release that committer's exclusive lock on committing once that task fails. However, due to a unit mismatch (we used task attempt number in one place and task attempt id in another) the lock will not be released, causing Spark to go into an infinite retry loop.

This bug was masked by the fact that the OutputCommitCoordinator does not have enough end-to-end tests (the current tests use many mocks). Other factors contributing to this bug are the fact that we have many similarly-named identifiers that have different semantics but the same data types (e.g. attemptNumber and taskAttemptId, with inconsistent variable naming which makes them difficult to distinguish).

This patch adds a regression test and fixes this bug by always using task attempt numbers throughout this code.

Author: Josh Rosen <joshrosen@databricks.com>

Closes apache#8544 from JoshRosen/SPARK-10381.

(cherry picked from commit 38700ea)
Signed-off-by: Josh Rosen <joshrosen@databricks.com>
@SparkQA
Copy link

SparkQA commented Sep 17, 2015

Test build #42560 has finished for PR 8789 at commit 4bfbfd6.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Sep 17, 2015

Test build #42567 has finished for PR 8789 at commit 62ec0f9.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@JoshRosen
Copy link
Contributor Author

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Sep 17, 2015

Test build #42575 has finished for PR 8789 at commit 62ec0f9.

  • This patch fails Spark unit tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@JoshRosen
Copy link
Contributor Author

Jenkins, retest this please.

@SparkQA
Copy link

SparkQA commented Sep 17, 2015

Test build #42614 has finished for PR 8789 at commit 62ec0f9.

  • This patch fails to build.
  • This patch merges cleanly.
  • This patch adds no public classes.

@JoshRosen
Copy link
Contributor Author

Jenkins, retest this please.

@yhuai
Copy link
Contributor

yhuai commented Sep 18, 2015

LGTM. We can merge it once jenkins is good.

@SparkQA
Copy link

SparkQA commented Sep 19, 2015

Test build #42697 has finished for PR 8789 at commit 62ec0f9.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@JoshRosen
Copy link
Contributor Author

It looks like there haven't been any new commits to branch-1.4 since when this was last tested, so I'm going to merge this now.

asfgit pushed a commit that referenced this pull request Sep 21, 2015
…mitCoordinator (branch-1.4 backport)

This is a backport of #8544 to `branch-1.4` for inclusion in 1.4.2.

Author: Josh Rosen <joshrosen@databricks.com>

Closes #8789 from JoshRosen/SPARK-10381-1.4.
@JoshRosen JoshRosen closed this Sep 21, 2015
@JoshRosen JoshRosen deleted the SPARK-10381-1.4 branch September 21, 2015 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants