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

Yuming Wang updated SPARK-18827:
--------------------------------
    Attachment: NoSuchElementException4722.gif

> Cann't read broadcast if broadcast blocks are stored on-disk
> ------------------------------------------------------------
>
>                 Key: SPARK-18827
>                 URL: https://issues.apache.org/jira/browse/SPARK-18827
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.0.1, 2.0.2, 2.1.0
>            Reporter: Yuming Wang
>         Attachments: NoSuchElementException4722.gif
>
>
> How to reproduce it:
> {code:java}
>   test("Cache broadcast to disk") {
>     val conf = new SparkConf()
>       .setAppName("Cache broadcast to disk")
>       .setMaster("local")
>       .set("spark.memory.useLegacyMode", "true")
>       .set("spark.storage.memoryFraction", "0.0")
>     sc = new SparkContext(conf)
>     val list = List[Int](1, 2, 3, 4)
>     val broadcast = sc.broadcast(list)
>     assert(broadcast.value.sum === 10)
>   }
> {code}
> {{NoSuchElementException}} will throw since SPARK-17503 if a broadcast cannot 
> cache in memory. The reason is that that change cannot cover 
> {{!unrolled.hasNext}} in {{next()}} function.



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

Reply via email to