You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Xiao Li (JIRA)" <ji...@apache.org> on 2017/11/04 06:39:00 UTC

[jira] [Resolved] (SPARK-22254) clean up the implementation of `growToSize` in CompactBuffer

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

Xiao Li resolved SPARK-22254.
-----------------------------
       Resolution: Fixed
    Fix Version/s: 2.3.0

> clean up the implementation of `growToSize` in CompactBuffer
> ------------------------------------------------------------
>
>                 Key: SPARK-22254
>                 URL: https://issues.apache.org/jira/browse/SPARK-22254
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.2.1
>            Reporter: Feng Liu
>            Assignee: Kazuaki Ishizaki
>            Priority: Major
>             Fix For: 2.3.0
>
>
> two issues:
> 1. the arrayMax should be `ByteArrayMethods.MAX_ROUNDED_ARRAY_LENGTH `
> 2. I believe some `-2` were introduced because `Integer.Max_Value` was used previously. We should make the calculation of newArrayLen concise. 



--
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