You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Patrick Wendell (JIRA)" <ji...@apache.org> on 2014/10/22 06:28:33 UTC

[jira] [Updated] (SPARK-4033) Integer overflow when SparkPi is called with more than 25000 slices

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

Patrick Wendell updated SPARK-4033:
-----------------------------------
    Summary: Integer overflow when SparkPi is called with more than 25000 slices  (was: Input of the SparkPi  too big causes the emption exception)

> Integer overflow when SparkPi is called with more than 25000 slices
> -------------------------------------------------------------------
>
>                 Key: SPARK-4033
>                 URL: https://issues.apache.org/jira/browse/SPARK-4033
>             Project: Spark
>          Issue Type: Bug
>          Components: Examples
>    Affects Versions: 1.2.0
>            Reporter: hzw
>
> If input of the SparkPi args is larger than the 25000, the integer 'n' inside the code will be overflow, and may be a negative number.
> And it causes  the (0 until n) Seq as an empty seq, then doing the action 'reduce'  will throw the UnsupportedOperationException("empty collection").



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

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