Imran Rashid created SPARK-9437:
-----------------------------------

             Summary: SizeEstimator overflows for primitive arrays
                 Key: SPARK-9437
                 URL: https://issues.apache.org/jira/browse/SPARK-9437
             Project: Spark
          Issue Type: Bug
          Components: Spark Core
    Affects Versions: 1.4.1
            Reporter: Imran Rashid
            Assignee: Imran Rashid
            Priority: Minor


{{SizeEstimator}} can overflow when dealing w/ large primitive arrays eg if you 
have an {{Array[Double]}} of size 1 << 28.  This means that when you try to 
broadcast a large primitive array, you get:

{noformat}
java.lang.IllegalArgumentException: requirement failed: sizeInBytes was 
negative: -2147483608
   at scala.Predef$.require(Predef.scala:233)
   at org.apache.spark.storage.BlockInfo.markReady(BlockInfo.scala:55)
   at org.apache.spark.storage.BlockManager.doPut(BlockManager.scala:815)
   at org.apache.spark.storage.BlockManager.putIterator(BlockManager.scala:638)
...
{noformat}



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