spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Spark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SPARK-22987) UnsafeExternalSorter cases OOM when invoking `getIterator` function.
Date Mon, 08 Jan 2018 04:38:00 GMT

    [ https://issues.apache.org/jira/browse/SPARK-22987?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16315657#comment-16315657
] 

Apache Spark commented on SPARK-22987:
--------------------------------------

User 'liutang123' has created a pull request for this issue:
https://github.com/apache/spark/pull/20184

> 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
>
> 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
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org


Mime
View raw message