Github user JoshRosen commented on a diff in the pull request:
https://github.com/apache/spark/pull/4066#discussion_r23107622
--- Diff: core/src/main/scala/org/apache/spark/SparkHadoopWriter.scala ---
@@ -105,10 +107,20 @@ class SparkHadoopWriter(@transient jobConf: JobConf)
def commit() {
val taCtxt = getTaskContext()
val cmtr = getOutputCommitter()
+ val dagSchedulerActor =
+ AkkaUtils.makeDriverRef("DAGScheduler", SparkEnv.get.conf,
SparkEnv.get.actorSystem)
+ val askTimeout = AkkaUtils.askTimeout(SparkEnv.get.conf)
if (cmtr.needsTaskCommit(taCtxt)) {
try {
- cmtr.commitTask(taCtxt)
- logInfo (taID + ": Committed")
+ val canCommit: Boolean = AkkaUtils.askWithReply(
+ AskPermissionToCommitOutput(jobID, splitID, attemptID),
dagSchedulerActor, askTimeout)
--- End diff --
You can't know in advance which tasks might have speculated copies, so I
think you could only enable/disable this depending on whether speculation was
enabled rather than on a per-task or job basis. Note that this only affects
ResultTasks that save output to Hadoop, such as `saveAsTextFile`.
---
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]