Github user mateiz commented on a diff in the pull request:
https://github.com/apache/spark/pull/3003#discussion_r19572924
--- Diff:
core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala ---
@@ -524,7 +529,14 @@ private[spark] class TaskSetManager(
/**
* Marks the task as successful and notifies the DAGScheduler that a
task has ended.
*/
- def handleSuccessfulTask(tid: Long, result: DirectTaskResult[_]) = {
+ def handleSuccessfulTask(tid: Long, result: DirectTaskResult[_]): Unit =
{
+ totalResultSize += result.metrics.resultSize
+ if (MAX_RESULT_SIZE > 0 && totalResultSize > MAX_RESULT_SIZE) {
+ abort(s"The size of results ${Utils.bytesToString(totalResultSize)}"
+
+ s" extends limit ${Utils.bytesToString(MAX_RESULT_SIZE)},
please increase" +
+ s" spark.driver.maxResultSize or void collect() if it's
possible")
--- End diff --
should say avoid
---
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]