Skip to content

Fixe cache level in Ingest objects - #2854

Merged
pomadchin merged 1 commit into
locationtech:masterfrom
pomadchin:fix/ingest-object
Dec 18, 2018
Merged

pomadchin merged 1 commit into
locationtech:masterfrom
pomadchin:fix/ingest-object

Conversation

@pomadchin

Copy link
Copy Markdown
Member

Overview

Without this fix in some cases we can be get into the situation where this cache level (IN_MEMORY) would be assigned for the RDD, making impossible to set the desired cache level from the parameters, causing the following exception:

[info]   java.lang.UnsupportedOperationException: Cannot change storage level of an RDD after it was already assigned a level
[info]   at org.apache.spark.rdd.RDD.persist(RDD.scala:170)
[info]   at org.apache.spark.rdd.RDD.persist(RDD.scala:195)
[info]   at geotrellis.spark.ingest.Ingest$.apply(Ingest.scala:96)

@pomadchin
pomadchin merged commit 67ea7b2 into locationtech:master Dec 18, 2018
echeipesh pushed a commit that referenced this pull request Dec 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant