[ 
https://issues.apache.org/jira/browse/SPARK-22987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hyukjin Kwon updated SPARK-22987:
---------------------------------
    Labels: bulk-closed  (was: )

> UnsafeExternalSorter cases OOM when invoking `getIterator` function.
> --------------------------------------------------------------------
>
>                 Key: SPARK-22987
>                 URL: https://issues.apache.org/jira/browse/SPARK-22987
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.2.0, 2.2.1
>            Reporter: Lijia Liu
>            Priority: Major
>              Labels: bulk-closed
>
> ChainedIterator.UnsafeExternalSorter remains a Queue of UnsafeSorterIterator. 
> When call `getIterator` function of UnsafeExternalSorter, 
> UnsafeExternalSorter passes an ArrayList of UnsafeSorterSpillReader to the 
> constructor of UnsafeExternalSorter. But, UnsafeSorterSpillReader maintains a 
> byte array as buffer, witch capacity is more than 1 MB. When spilling 
> frequently, this case maybe causes OOM.
> I try to change the Queue in ChainedIterator to a Iterator. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to