[ https://issues.apache.org/jira/browse/SPARK-4033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Or closed SPARK-4033. ---------------------------- Resolution: Fixed Fix Version/s: 1.3.0 Assignee: SaintBacchus Target Version/s: 1.3.0 > 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: SaintBacchus > Assignee: SaintBacchus > Fix For: 1.3.0 > > > 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-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org