Skip to content

Commit aa9ebda

Browse files
author
Andrew Or
committed
[SPARK-4467] Partial fix for fetch failure in sort-based shuffle (1.1)
This is the 1.1 version of #3302. There has been some refactoring in master so we can't cherry-pick that PR. Author: Andrew Or <andrew@databricks.com> Closes #3330 from andrewor14/sort-fetch-fail and squashes the following commits: 486fc49 [Andrew Or] Reset `elementsRead`
1 parent e4f5695 commit aa9ebda

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/main/scala/org/apache/spark/util/collection/ExternalSorter.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,7 @@ private[spark] class ExternalSorter[K, V, C](
288288
myMemoryThreshold = 0
289289

290290
_memoryBytesSpilled += memorySize
291+
elementsRead = 0
291292
}
292293

293294
/**

0 commit comments

Comments
 (0)