GitHub user liutang123 opened a pull request:
https://github.com/apache/spark/pull/20184
[SPARK-22987][Core] UnsafeExternalSorter cases OOM when invoking
`getIterator` function.
## What changes were proposed in this pull request?
ChainedIterator.UnsafeExternalSorter remains
Github user kiszk commented on a diff in the pull request:
https://github.com/apache/spark/pull/20184#discussion_r208993136
--- Diff:
core/src/main/java/org/apache/spark/util/collection/unsafe/sort/UnsafeSorterSpillReader.java
---
@@ -116,13 +138,18 @@ public void loadNext() throw