Skip to content

Commit

Permalink
Changes to maxResultSize code (improve error message and add conditio…
Browse files Browse the repository at this point in the history
…n to check if maxResultSize > 0)
  • Loading branch information
nishkamravi2 committed Nov 19, 2014
1 parent 5f8f9ed commit 9f6583e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -221,7 +221,7 @@ private[spark] class Executor(

// directSend = sending directly back to the driver
val serializedResult = {
if (resultSize > maxResultSize) {
if (maxResultSize > 0 && resultSize > maxResultSize) {
logWarning(s"Finished $taskName (TID $taskId). Result is larger than maxResultSize " +
s"(${Utils.bytesToString(resultSize)} > ${Utils.bytesToString(maxResultSize)}), " +
s"dropping it.")
Expand Down
Expand Up @@ -536,7 +536,7 @@ private[spark] class TaskSetManager(
calculatedTasks += 1
if (maxResultSize > 0 && totalResultSize > maxResultSize) {
val msg = s"Total size of serialized results of ${calculatedTasks} tasks " +
s"(${Utils.bytesToString(totalResultSize)}) is bigger than maxResultSize " +
s"(${Utils.bytesToString(totalResultSize)}) is bigger than configurable parameter spark.driver.maxResultSize " +
s"(${Utils.bytesToString(maxResultSize)})"
logError(msg)
abort(msg)
Expand Down

0 comments on commit 9f6583e

Please sign in to comment.