You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Imran Rashid (JIRA)" <ji...@apache.org> on 2018/11/07 12:20:01 UTC

[jira] [Resolved] (SPARK-25904) Avoid allocating arrays too large for JVMs

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

Imran Rashid resolved SPARK-25904.
----------------------------------
       Resolution: Fixed
    Fix Version/s: 3.0.0

Issue resolved by pull request 22818
[https://github.com/apache/spark/pull/22818]

> Avoid allocating arrays too large for JVMs
> ------------------------------------------
>
>                 Key: SPARK-25904
>                 URL: https://issues.apache.org/jira/browse/SPARK-25904
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 2.4.0
>            Reporter: Imran Rashid
>            Assignee: Imran Rashid
>            Priority: Major
>             Fix For: 3.0.0
>
>
> In a few places spark can try to allocate arrays as big as {{Int.MaxValue}}, but thats actually too big for the JVM.  We should consistently use {{ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH}} instead.
> In some cases this is changing defaults for configs, in some cases its bounds on a config, and others its just improving error msgs for things that still won't work.



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

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