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

commented Dec 18, 2018

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 force-pushed the pomadchin:fix/ingest-object branch from 294507c to a837fa0 Dec 18, 2018

@pomadchin pomadchin merged commit 67ea7b2 into locationtech:master Dec 18, 2018

1 of 2 checks passed

continuous-integration/travis-ci/pr The Travis CI build is in progress
Details
ip-validation
Details
echeipesh added 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
Projects
None yet
1 participant
You can’t perform that action at this time.