You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Sean Owen (JIRA)" <ji...@apache.org> on 2016/12/18 09:08:58 UTC
[jira] [Resolved] (SPARK-18827) Cann't read broadcast if broadcast
blocks are stored on-disk
[ https://issues.apache.org/jira/browse/SPARK-18827?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sean Owen resolved SPARK-18827.
-------------------------------
Resolution: Fixed
Fix Version/s: 2.0.3
2.1.1
Issue resolved by pull request 16252
[https://github.com/apache/spark/pull/16252]
> 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
> Fix For: 2.1.1, 2.0.3
>
> 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-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org