Skip to content
Snippets Groups Projects
Commit 4a7813a2 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Merge pull request #903 from rxin/resulttask

Fixed the bug that ResultTask was not properly deserializing outputId.
parents afe46ba3 210eae26
No related branches found
No related tags found
No related merge requests found
...@@ -77,7 +77,7 @@ private[spark] class ResultTask[T, U]( ...@@ -77,7 +77,7 @@ private[spark] class ResultTask[T, U](
var func: (TaskContext, Iterator[T]) => U, var func: (TaskContext, Iterator[T]) => U,
var partition: Int, var partition: Int,
@transient locs: Seq[TaskLocation], @transient locs: Seq[TaskLocation],
val outputId: Int) var outputId: Int)
extends Task[U](stageId) with Externalizable { extends Task[U](stageId) with Externalizable {
def this() = this(0, null, null, 0, null, 0) def this() = this(0, null, null, 0, null, 0)
...@@ -130,7 +130,7 @@ private[spark] class ResultTask[T, U]( ...@@ -130,7 +130,7 @@ private[spark] class ResultTask[T, U](
rdd = rdd_.asInstanceOf[RDD[T]] rdd = rdd_.asInstanceOf[RDD[T]]
func = func_.asInstanceOf[(TaskContext, Iterator[T]) => U] func = func_.asInstanceOf[(TaskContext, Iterator[T]) => U]
partition = in.readInt() partition = in.readInt()
val outputId = in.readInt() outputId = in.readInt()
epoch = in.readLong() epoch = in.readLong()
split = in.readObject().asInstanceOf[Partition] split = in.readObject().asInstanceOf[Partition]
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment