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

Apache Spark commented on SPARK-6076:
-------------------------------------

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

> Fix a potential OOM issue when StorageLevel is MEMORY_AND_DISK_SER
> ------------------------------------------------------------------
>
>                 Key: SPARK-6076
>                 URL: https://issues.apache.org/jira/browse/SPARK-6076
>             Project: Spark
>          Issue Type: Bug
>          Components: Block Manager
>    Affects Versions: 1.2.1
>            Reporter: Shixiong Zhu
>            Priority: Minor
>
> When StorageLevel is MEMORY_AND_DISK_SER, it will copy the content from file 
> into memory, then put it into MemoryStore. See: 
> https://github.com/apache/spark/blob/dcd1e42d6b6ac08d2c0736bf61a15f515a1f222b/core/src/main/scala/org/apache/spark/storage/BlockManager.scala#L538
> However, if the file is bigger than the free memory, OOM will happen. A 
> better approach is testing if there is enough memory. If not, copyForMemory 
> should not be created, since this is an option operation.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to