jiangxb1987 commented on issue #26614: [SPARK-29976][CORE] Trigger speculation for stages with too few tasks URL: https://github.com/apache/spark/pull/26614#issuecomment-560942586 We would enter the original speculation logic anyway when enough tasks have finished successfully, so the difference is only on the case when some of the tasks have succeed, but the number of successful tasks is less than `minFinishedForSpeculation`. For example, you may have 4 slots on each executor, the currently running taskSet has 5 tasks, 2 of which has succeed, 1 task is running, and the rest 2 tasks are pending. In this case when the task running time has exceed the `speculationTaskDurationThresOpt.get` then I think it should be reasonable to submit a speculative task, because the risk that it would consume too much resources is low, and it could possibly resolve the potential task hang issue (like the scenario described in the JIRA).
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
