Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixe cache level in Ingest objects #2854

Merged
merged 1 commit into from
Dec 18, 2018

Conversation

pomadchin
Copy link
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